00001 // 00002 // Copyright (c) 2000 by Tech Soft 3D, LLC. 00003 // The information contained herein is confidential and proprietary to 00004 // Tech Soft 3D, LLC., and considered a trade secret as defined under 00005 // civil and criminal statutes. Tech Soft 3D shall pursue its civil 00006 // and criminal remedies in the event of unauthorized use or misappropriation 00007 // of its trade secrets. Use of this information by anyone other than 00008 // authorized employees of Tech Soft 3D, LLC. is granted only under a 00009 // written non-disclosure agreement, expressly prescribing the scope and 00010 // manner of such use. 00011 // 00012 // $Id: 25a64989ee713289226d060a0871bbdd2d859144 $ 00013 // 00014 00015 00016 #ifndef _HIOUTILITYIV_H 00017 #define _HIOUTILITYIV_H 00018 00019 #ifdef H_PACK_8 00020 #pragma pack(push) 00021 #pragma pack(8) 00022 #endif 00023 00024 #ifndef _WIN32_WCE 00025 #include "HTools.h" 00026 #include "HIOManager.h" 00027 00030 class MVO_API HIOUtilityIV: public HInputHandler 00031 { 00032 00033 public: 00034 00036 HIOUtilityIV() { 00037 SetInputOps(HInputOpFileInputByKey); 00038 }; 00039 virtual ~HIOUtilityIV() {;}; 00040 00042 void RegisterInputHandlerTypes() { 00043 HIORegisterInputType("iv",this); 00044 }; 00045 00048 const char * GetInputName() { return "HIOUtilityIV"; } 00049 00051 const char * GetInputTypesString() {return "iv";}; 00052 00054 HInputHandlerStyle GetInputStyle() {return HInputHandlerStyleModel;}; 00055 00063 HFileInputResult FileInputByKey(const __wchar_t * FileName, HC_KEY key, HInputHandlerOptions * options); 00064 00065 HFileInputResult FileInputByKey(const char * FileName, HC_KEY key, HInputHandlerOptions * options){ 00066 return FileInputByKey(H_WCS(FileName).encodedText(), key, options); 00067 }; 00068 00069 HFileInputResult FileInputByKey(const unsigned short * FileName, HC_KEY key, HInputHandlerOptions * options){ 00070 H_UTF16 utf16; 00071 utf16.encodedText((utf16_char const*) FileName); 00072 return FileInputByKey(H_WCS(utf16).encodedText(), key, options); 00073 }; 00074 }; 00075 00076 #endif 00077 00078 #ifdef H_PACK_8 00079 #pragma pack(pop) 00080 #endif 00081 00082 #endif