Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HIOUtilityExchange.h
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 _HIOUTILITYEXCHANGE_H
00011 #define _HIOUTILITYEXCHANGE_H
00012 
00013 #ifdef H_PACK_8
00014 #pragma pack(push)
00015 #pragma pack(8)
00016 #endif
00017 
00018 #include "HTools.h"
00019 #include "HIOManager.h"
00020 #include "vlist.h"
00021 
00022 #if defined(HIO_EXCHANGE) && defined(_MSC_VER)
00023 #define HIO_API __declspec (dllexport)
00024 #else
00025 #define HIO_API
00026 #endif
00027 
00028 class HPDFLayoutManager;
00029 class HPDFOptions;
00034 class HIO_API HIOUtilityExchange: public HInputHandler, public HOutputHandler
00035 {
00036 
00037 public:
00038 
00040     HIOUtilityExchange();
00041     virtual ~HIOUtilityExchange() {};
00042 
00044     void RegisterInputHandlerTypes();
00047     const char * GetOutputName() { return "HIOUtilityExchange"; }
00048     const char * GetInputName() { return "HIOUtilityExchange"; }
00049 
00051     const char * GetInputTypesString() {return "prc;prd;x_t;x_b;step;stp;igs;iges;CATPart;CATProduct;"
00052         "cgr;session;model;3dxml;CADDS;PD;XV3;XV0;prt;asm;xpr;xas;neu;asm.1;prt.1;jt;SLDPRT;SLDASM;mf1;"    
00053     "arc;unv;pkg;sdp;sdpc;sdw;sdwc;sda;sdac;sds;sdsc;ses;bdl;psm;pwd;par;asm;sat;sab;ipt;iam;ifc;dae"; }
00054  
00055         
00056 
00058     HInputHandlerStyle GetInputStyle() {return HInputHandlerStyleModel;};
00059 
00067     HFileInputResult FileInputByKey(const wchar_t * FileName, HC_KEY key, HInputHandlerOptions * options);
00068 
00069     HFileInputResult FileInputByKey(const char * FileName, HC_KEY key, HInputHandlerOptions * options){
00070         return FileInputByKey(H_WCS(FileName).encodedText(), key, options);
00071     };
00072 
00073     HFileInputResult FileInputByKey(const unsigned short * FileName, HC_KEY key, HInputHandlerOptions * options){
00074         H_UTF16 utf16;
00075         utf16.encodedText((utf16_char const*) FileName);
00076         return FileInputByKey(H_WCS(utf16).encodedText(), key, options);
00077     };
00078 
00079     HFileOutputResult FileOutputByKey(const wchar_t * filename, HC_KEY key, HOutputHandlerOptions * options);
00080 
00081     HFileOutputResult FileOutputByKey(const unsigned short * filename, HC_KEY key, HOutputHandlerOptions * options){
00082         H_UTF16 utf16;
00083         utf16.encodedText((utf16_char const*) filename);
00084         return FileOutputByKey(H_WCS(utf16).encodedText(), key, options);
00085     }
00086 
00087     HFileOutputResult FileOutputByKey(const char * filename, HC_KEY key, HOutputHandlerOptions * options){
00088         return FileOutputByKey(H_WCS(filename).encodedText(), key, options);
00089     }
00090 
00091     void RegisterOutputHandlerTypes();
00092     
00099     virtual void *BuildPRCModel(HOutputHandlerOptions * options, HC_KEY key);
00100  
00101 
00102     const char *  GetOutputTypesString() {
00103         return "prc;iges;step;x_t;stl";
00104     }
00105 
00106     HOutputHandlerStyle GetOutputStyle() {
00107         return HOutputHandlerStyleModel;
00108     }
00109 };
00110 
00111 
00112 
00113 #ifdef HIO_EXCHANGE
00114 extern "C" {
00115     HIO_API void * CreateInput(HIOManager *manager);
00116     HIO_API void * CreateOutput(HIOManager *manager);
00117     HIO_API void * CreateConnector(void * unused);
00118     HIO_API void Free(HIOUtilityExchange *);
00119  }
00120 
00121 
00122 #endif
00123 
00124 #ifdef H_PACK_8
00125 #pragma pack(pop)
00126 #endif
00127 
00128 #endif