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