Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HIOUtilityGif.h

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: 344cf1a01f75572dbdf53a284309ec44081c9008 $
00013 //
00014 
00015 
00016 #ifndef _HIOUTILITYGIF_H
00017 #define _HIOUTILITYGIF_H
00018 
00019 #ifdef H_PACK_8
00020 #pragma pack(push)
00021 #pragma pack(8)
00022 #endif
00023 
00024 #include "HTools.h"
00025 #include "HIOManager.h"
00026 
00030 class MVO_API HIOUtilityGif: public HInputHandler
00031 {
00032 
00033 public:
00035     HIOUtilityGif() {
00036         SetInputOps(HInputOpFileInputToImageKey);
00037     };
00038 
00039     virtual ~HIOUtilityGif() {;};
00040 
00043     const char * GetInputName() { return "HIOUtilityGif"; }
00044 
00045 
00047     void RegisterInputHandlerTypes() {
00048         HIORegisterInputType("gif",this);
00049     };
00050 
00052     const char * GetInputTypesString() {return "gif";};
00053 
00055     HInputHandlerStyle GetInputStyle() {return HInputHandlerStyleImage;};
00056 
00066     HFileInputResult FileInputToImageKey(const __wchar_t * filename, HC_KEY * image_key, HC_KEY segment_key, HInputHandlerOptions * options);
00067 
00068     HFileInputResult FileInputToImageKey(const unsigned short * filename, HC_KEY * image_key, HC_KEY segment_key, HInputHandlerOptions * options){
00069         H_UTF16 utf16;
00070         utf16.encodedText((utf16_char const*) filename);
00071         return FileInputToImageKey(H_WCS(utf16).encodedText(), image_key, segment_key, options);
00072     }
00073 
00074     HFileInputResult FileInputToImageKey(const char * filename, HC_KEY * image_key, HC_KEY segment_key, HInputHandlerOptions * options){
00075         return FileInputToImageKey(H_WCS(filename).encodedText(), image_key, segment_key, options);
00076     }
00077 };
00078 
00079 
00080 #ifdef H_PACK_8
00081 #pragma pack(pop)
00082 #endif
00083 
00084 #endif