hio_dwg.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 #pragma once
11 
12 #ifdef H_PACK_8
13 #pragma pack(push)
14 #pragma pack(8)
15 #endif
16 
17 #include "HTools.h"
18 #include "HIOManager.h"
19 #include "MrDwgReader.h"
20 
21 #ifdef HIO_DWG
22 #define HIO_API __declspec (dllexport)
23 #else
24 #define HIO_API
25 #endif
26 
31 class HIO_API hio_dwg : public HInputHandler
32 {
33 public:
34 
38  static bool InitRealDWG();
39 
43  static void ShutDownRealDWG();
44 
45 
53  HFileIOResult FileInputByKey(const wchar_t * FileName, HC_KEY key, HInputHandlerOptions * options);
54  HFileIOResult FileInputByKey(const char * FileName, HC_KEY key, HInputHandlerOptions * options);
55  HFileIOResult FileInputByKey(const unsigned short * FileName, HC_KEY key, HInputHandlerOptions * options);
56 
64  HFileIOResult DatabaseInputByKey(AcDbDatabase* pAcDbDatabase, HC_KEY key, HInputHandlerOptions * options);
65 
66 
67  hio_dwg();
68  ~hio_dwg();
69 
72 
74  const char * GetInputName();
75 
77  const char * GetInputTypesString();
78 
81 
82  static bool bDWGInitialized;
83 };
84 
85 
86 #ifdef H_PACK_8
87 #pragma pack(pop)
88 #endif
virtual void RegisterInputHandlerTypes()=0
virtual HFileInputResult FileInputByKey(const char *filename, HC_KEY key, HInputHandlerOptions *options)
HInputHandler an abstract base class for model and image input.
Definition: HIOManager.h:671
virtual const char * GetInputName()=0
Definition: hio_dwg.h:31
HInputHandlerStyle
Definition: HIOManager.h:225
virtual HInputHandlerStyle GetInputStyle()=0
Definition: HIOManager.h:246
A header file containing the HIO classes for passing to HBaseView::FileInput and HBaseView::FileOutpu...
HFileIOResult
Definition: HGlobals.h:24
virtual const char * GetInputTypesString()=0