HIOUtilitySpheres.h
Go to the documentation of this file.
00001 
00002 #ifndef _HIO_UTILITY_SPHERES_H
00003 #define _HIO_UTILITY_SPHERES_H
00004 
00005 #include "HTools.h"
00006 #include "HIOManager.h"
00007 
00009 class HIOUtilitySpheres: public HInputHandler, public HOutputHandler
00010 {
00011 
00012 public:
00013 
00014     HIOUtilitySpheres() {
00015         SetInputOps(HInputOpFileInputByKey);
00016         SetOutputOps(HOutputOpFileOutputByKey);
00017     };
00018 
00019     virtual ~HIOUtilitySpheres() {;};
00020 
00021     /* ! Register this object to serve as the input handler for files with the .sph extension */
00022     void RegisterInputHandlerTypes() {
00023         HIORegisterInputType("sph",this);
00024     };
00025 
00026 
00029     const char * GetOutputName() { return "HIOUtilitySpheres"; }
00030     const char * GetInputName() { return "HIOUtilitySpheres"; }
00031 
00032     const char * GetInputTypesString() {return "sph";};
00033     HInputHandlerStyle GetInputStyle() {return HInputHandlerStyleModel;};
00034 
00038     HFileInputResult FileInputByKey(const char * FileName, HC_KEY key, HInputHandlerOptions * options) {
00039         return FileInputByKey(H_WCS(FileName).encodedText(), key, options);
00040     }
00041 
00042     HFileInputResult FileInputByKey(const __wchar_t * FileName, HC_KEY key, HInputHandlerOptions * options);
00043 
00044     /* ! Register this object to serve as the output handler for files with the .sph extension */
00045     void RegisterOutputHandlerTypes() {
00046         HIORegisterOutputType("sph",this);
00047     };
00048 
00049     const char * GetOutputTypesString() {return "sph";};
00050     HOutputHandlerStyle GetOutputStyle() {return HOutputHandlerStyleModel;};
00051 
00055     HFileOutputResult FileOutputByKey(const char * FileName, HC_KEY key, HOutputHandlerOptions * options) {
00056         H_UTF16 utf16;
00057         utf16.encodedText((utf16_char const*) FileName);
00058         return FileOutputByKey(H_WCS(utf16).encodedText(), key, options);
00059     }
00060 
00061     HFileOutputResult FileOutputByKey(const __wchar_t * FileName, HC_KEY key, HOutputHandlerOptions * options);
00062 };
00063 
00064 #endif
00065 
00066 
00067