Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HIOUtilityDGN.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 _HIO_UTILITY_DGN_2__02052008_1230_
00011 #define _HIO_UTILITY_DGN_2__02052008_1230_
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 
00021 
00022 #ifdef HIO_DGN
00023 #  ifdef _MSC_VER
00024 #    define HIO_API __declspec (dllexport)
00025 #  else
00026 #    define HIO_API __attribute__ ((visibility ("default")))
00027 #  endif
00028 #else
00029 #  define HIO_API
00030 #endif
00031 
00038 class HIO_API HIOUtilityDGN : public HInputHandler
00039 {
00040 
00041 
00042 public:
00043 
00045     HIOUtilityDGN() 
00046     { 
00047         SetInputOps(HInputOpFileInputByKey);
00048     };
00049 
00050     ~HIOUtilityDGN() {;};
00051 
00053     void RegisterInputHandlerTypes() {
00054         HIORegisterInputType("DGN",this);  // DGN (Bentley's CAD format)
00055         HIORegisterInputType("dgn",this);  // DGN (Bentley's CAD format)
00056     };
00057 
00060     const char * GetOutputName() { return "HIOUtilityDGN"; }
00061     const char * GetInputName() { return "HIOUtilityDGN"; }
00062 
00064     HInputHandlerStyle GetInputStyle() {return HInputHandlerStyleModel;};
00065 
00067     const char * GetInputTypesString() {return "dgn";};
00068 
00075     HFileInputResult FileInputByKey(const char * FileName, HC_KEY key, HInputHandlerOptions * options);
00076 
00077     HFileInputResult FileInputByKey(const wchar_t * FileName, HC_KEY key, HInputHandlerOptions * options);
00078 
00085     HFileInputResult FileInputByKey(const unsigned short * FileName, HC_KEY key, HInputHandlerOptions * options);
00086 
00087 
00089     void InitDGNDirect();
00090 
00092     void  ShutdownDGNDirect();
00093 
00094 };
00095 
00096 #ifdef HIO_DGN
00097 extern "C" {
00098     HIO_API void * CreateInput(HIOManager *manager);
00099     HIO_API void * CreateOutput(HIOManager *manager);
00100     HIO_API void * CreateConnector(void *unused);
00101     HIO_API void Free(HIOUtilityDGN *);
00102     HIO_API void FreeConnector(HIOConnector *connector);
00103 }
00104 #endif
00105 
00106 
00107 
00108 #ifdef H_PACK_8
00109 #pragma pack(pop)
00110 #endif
00111 
00112 #endif  //_HIO_UTILITY_DGN_2__02052008_1230_
00113 
00114 
00115 
00116 
00117 
00118