Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HIOUtilityDGN.h
1 //
2 // Copyright (c) 2005 by Tech Soft 3D, LLC.
3 // The information contained herein is confidential and proprietary to
4 // Tech Soft 3D, LLC., and considered a trade secret as defined under
5 // civil and criminal statutes. Tech Soft 3D shall pursue its civil
6 // and criminal remedies in the event of unauthorized use or misappropriation
7 // of its trade secrets. Use of this information by anyone other than
8 // authorized employees of Tech Soft 3D, LLC. is granted only under a
9 // written non-disclosure agreement, expressly prescribing the scope and
10 // manner of such use.
11 //
12 
13 
14 #ifndef _HIO_UTILITY_DGN_2__02052008_1230_
15 #define _HIO_UTILITY_DGN_2__02052008_1230_
16 
17 #ifdef H_PACK_8
18 #pragma pack(push)
19 #pragma pack(8)
20 #endif
21 
22 #include "HTools.h"
23 #include "HIOManager.h"
24 
25 
26 #ifdef HIO_DGN
27 #define HIO_API __declspec (dllexport)
28 #else
29 #define HIO_API
30 #endif
31 
38 class HIO_API HIOUtilityDGN : public HInputHandler
39 {
40 
41 
42 public:
43 
46  {
48  };
49 
50  ~HIOUtilityDGN() {;};
51 
54  HIORegisterInputType("DGN",this); // DGN (Bentley's CAD format)
55  HIORegisterInputType("dgn",this); // DGN (Bentley's CAD format)
56  };
57 
60  const char * GetOutputName() { return "HIOUtilityDGN"; }
61  const char * GetInputName() { return "HIOUtilityDGN"; }
62 
65 
67  const char * GetInputTypesString() {return "dgn";};
68 
75  HFileInputResult FileInputByKey(const char * FileName, HC_KEY key, HInputHandlerOptions * options);
76 
77  HFileInputResult FileInputByKey(const wchar_t * FileName, HC_KEY key, HInputHandlerOptions * options);
78 
85  HFileInputResult FileInputByKey(const unsigned short * FileName, HC_KEY key, HInputHandlerOptions * options);
86 
87 
89  void InitDGNDirect();
90 
92  void ShutdownDGNDirect();
93 
94 };
95 
96 #ifdef HIO_DGN
97 extern "C" {
98  HIO_API void * CreateInput(HIOManager *manager);
99  HIO_API void * CreateOutput(HIOManager *manager);
100  HIO_API void * CreateConnector(void *unused);
101  HIO_API void Free(HIOUtilityDGN *);
102  HIO_API void FreeConnector(HIOConnector *connector);
103 }
104 #endif
105 
106 
107 
108 #ifdef H_PACK_8
109 #pragma pack(pop)
110 #endif
111 
112 #endif //_HIO_UTILITY_DGN_2__02052008_1230_
113 
114 
115 
116 
117 
118 
Specifies an HInputHandler for model data.
Definition: HIOManager.h:227
virtual HFileInputResult FileInputByKey(const char *filename, HC_KEY key, HInputHandlerOptions *options)
Definition: HIOManager.h:149
HInputHandler an abstract base class for model and image input.
Definition: HIOManager.h:667
const char * GetInputTypesString()
Definition: HIOUtilityDGN.h:67
HIOUtilityDGN()
Definition: HIOUtilityDGN.h:45
#define HIORegisterInputType(type, input_object)
Definition: HIOManager.h:87
HInputHandlerStyle GetInputStyle()
Definition: HIOUtilityDGN.h:64
Definition: HIOUtilityDGN.h:38
HInputHandlerStyle
Definition: HIOManager.h:226
const char * GetOutputName()
Definition: HIOUtilityDGN.h:60
#define HInputOpFileInputByKey
This HInputHandler supports input to a segment key.
Definition: HIOManager.h:60
void RegisterInputHandlerTypes()
Definition: HIOUtilityDGN.h:53
Definition: HIOManager.h:247
void SetInputOps(unsigned long ops)
This sets the HInputOp.
Definition: HIOManager.h:836
A header file containing the HIO classes for passing to HBaseView::FileInput and HBaseView::FileOutpu...
const char * GetInputName()
Definition: HIOUtilityDGN.h:61