Introduction

Getting Started

Programming Guides

API Reference

Additional Resources

HIOUtilityDGN.h
1 // Copyright (c) Tech Soft 3D, Inc.
2 //
3 // The information contained herein is confidential and proprietary to Tech Soft 3D, Inc.,
4 // and considered a trade secret as defined under civil and criminal statutes.
5 // Tech Soft 3D, Inc. shall pursue its civil and criminal remedies in the event of
6 // unauthorized use or misappropriation of its trade secrets. Use of this information
7 // by anyone other than authorized employees of Tech Soft 3D, Inc. is granted only under
8 // a written non-disclosure agreement, expressly prescribing the scope and manner of such use.
9 
10 #ifndef _HIO_UTILITY_DGN_2__02052008_1230_
11 #define _HIO_UTILITY_DGN_2__02052008_1230_
12 
13 #ifdef H_PACK_8
14 #pragma pack(push)
15 #pragma pack(8)
16 #endif
17 
18 #include "HTools.h"
19 #include "HIOManager.h"
20 
21 
22 #ifdef HIO_DGN
23 # ifdef _MSC_VER
24 # define HIO_API __declspec (dllexport)
25 # else
26 # define HIO_API __attribute__ ((visibility ("default")))
27 # endif
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 
Definition: HIOManager.h:1436
Specifies an HInputHandler for model data.
Definition: HIOManager.h:226
virtual HFileInputResult FileInputByKey(const char *filename, HC_KEY key, HInputHandlerOptions *options)
Definition: HIOManager.h:148
HInputHandler an abstract base class for model and image input.
Definition: HIOManager.h:655
const char * GetInputTypesString()
Definition: HIOUtilityDGN.h:67
HIOUtilityDGN()
Definition: HIOUtilityDGN.h:45
#define HIORegisterInputType(type, input_object)
Definition: HIOManager.h:85
HInputHandlerStyle GetInputStyle()
Definition: HIOUtilityDGN.h:64
Definition: HIOUtilityDGN.h:38
HInputHandlerStyle
Definition: HIOManager.h:225
const char * GetOutputName()
Definition: HIOUtilityDGN.h:60
#define HInputOpFileInputByKey
This HInputHandler supports input to a segment key.
Definition: HIOManager.h:58
void RegisterInputHandlerTypes()
Definition: HIOUtilityDGN.h:53
Definition: HIOManager.h:246
void SetInputOps(unsigned long ops)
This sets the HInputOp.
Definition: HIOManager.h:825
A header file containing the HIO classes for passing to HBaseView::FileInput and HBaseView::FileOutpu...
const char * GetInputName()
Definition: HIOUtilityDGN.h:61