CFx SDK Documentation  2022 SP0
GsFiler.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, Open Design Alliance (the "Alliance").
3 // All rights reserved.
4 //
5 // This software and its documentation and related materials are owned by
6 // the Alliance. The software may only be incorporated into application
7 // programs owned by members of the Alliance, subject to a signed
8 // Membership Agreement and Supplemental Software License Agreement with the
9 // Alliance. The structure and organization of this software are the valuable
10 // trade secrets of the Alliance and its suppliers. The software is also
11 // protected by copyright law and international treaty provisions. Application
12 // programs incorporating this software must include the following statement
13 // with their copyright notices:
14 //
15 // This application incorporates Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 by Open Design Alliance.
18 // All rights reserved.
19 //
20 // By use of this software, its documentation or related materials, you
21 // acknowledge and accept the above terms.
23 
24 #ifndef __OD_GS_FILER_H__
25 #define __OD_GS_FILER_H__
26 
27 #include "TD_PackPush.h"
28 
29 #include "OdStreamBuf.h"
30 #include "Gs/GsExport.h"
31 #include "OdBinaryData.h"
32 #include "OdVector.h"
33 #include "IntArray.h"
34 #include "UInt8Array.h"
35 #include "UInt32Array.h"
36 #include "UInt16Array.h"
37 #include "GsMarkerArray.h"
38 #include "DbStubPtrArray.h"
39 #include "Ge/GePoint2d.h"
40 #include "UInt64Array.h"
41 
42 class OdGePoint2d;
43 class OdGeVector2d;
44 class OdGePoint3d;
45 class OdGeVector3d;
46 class OdGeMatrix3d;
47 class OdGeExtents3d;
48 
49 class OdDbStub;
51 
52 class OdGsView;
53 class OdGsCache;
54 
55 class OdGsDCRect;
56 class OdGsDCRectDouble;
59 
63 {
64  public:
66 
67  OdGsFiler() { }
68  virtual ~OdGsFiler() { }
69  public:
70  enum Section
71  {
72  kEOFSection = -1, // EOF
73  // V1 sections
74  kHeaderSection = 0, // File header
75  kDatabaseLinkSection, // Database linkage section
76  kGsModuleSection, // Gs Module section
77  kDeviceSection, // Gs Device section
78  kClientDeviceSection, // Client Gs Device section
79  kViewSection, // Gs View section
80  kClientViewSection, // Client Gs View section
81  kModelSection, // Gs Model section
82  kClientModelSection, // Client Gs Model section
83  kNodeSection, // Gs Node section
84  kClientNodeSection, // Client Gs Node section
85  kMetafileSection, // Gs Metafile section
86  kClientMetafileSection, // Client Gs Metafile section
87  kClientMaterialSection, // Client Gs Material section
88  kBlockRefImplSection, // Block reference cache implementation section
89  kLinkedDeviceSection, // Linked Gs Device section
90  kRenditionSection, // Client visual rendition section
91  // V2 sections
92  kRuntimeChangesSection // Runtime Gs modifications section
93  };
94  enum Version
95  {
96  kV1 = 100,
97  kV2 = 200,
98  kVLast = kV2
99  };
101  {
102  typedef void (*SetPtrFunc)(void *pPlace, const void *pValue);
104  virtual ~SubstitutionActuator() { }
105  virtual void applySubstitution(void *pPlace, const void *pValue, SetPtrFunc pSetFunc) { pSetFunc(pPlace, pValue); }
106  };
107  struct Substitutor
108  {
109  // Register known substitution
110  virtual void registerSubstitution(const void *pValue, const void *pSubstitution, OdUInt32 size = sizeof(OdIntPtr), bool bRegister = true, bool bImmediate = false) = 0;
111  // Register substitution request
112  virtual void requestSubstitution(void *pPlace, const void *pValue, OdUInt32 size = sizeof(OdIntPtr), bool bRegister = true, bool bImmediate = true) = 0;
113  // Register substitution request for smart pointer
114  virtual void requestSubstitution(OdBaseObjectPtr *pPlace, const void *pValue, bool bRegister = true, bool bImmediate = true) = 0;
115  // Register substitution with non-default behavior
116  virtual void requestSubstitution(void *pPlace, OdGsFiler::SubstitutionActuator *pActuator, const void *pValue, OdUInt32 size = sizeof(OdIntPtr), bool bRegister = true, bool bImmediate = true) = 0;
117  // Clear substitutions
118  virtual void clearSubstitutions(const void *pValue = NULL, OdUInt32 size = 0) = 0;
119  // Run substitutions
120  virtual void runSubstitutions(const void *pValue = NULL, OdUInt32 size = 0, bool bClear = true) = 0;
121  };
122  public:
123  // Attach stream and initiate read/write process
124  virtual bool setStream(OdStreamBuf *pStream, bool bWrite = false) = 0;
125  virtual OdStreamBufPtr getStream() const = 0;
126 
127  // Setup working database
128  virtual void setDatabase(const OdDbBaseDatabase *pDb) = 0;
129  virtual OdDbBaseDatabase *getDatabase() const = 0;
130 
131  // File version control
132  virtual void setVersion(OdUInt32 nVersion) = 0;
133  virtual OdUInt32 version() const = 0;
134 
135  // Database hash control
136  virtual void wrDbHash(const OdDbBaseDatabase *pDb) = 0;
137  virtual bool checkDbHash(const OdDbBaseDatabase *pDb) = 0;
138 
139  // Setup sections for writing
140  virtual void setWriteSections(OdUInt64 nSections) = 0;
141  virtual void setWriteSection(Section section, bool bSet) = 0;
142  virtual bool isWriteSection(Section section) const = 0;
143 
144  // Setup sections for reading
145  virtual void setReadSections(OdUInt64 nSections) = 0;
146  virtual void setReadSection(Section section, bool bSet) = 0;
147  virtual bool isReadSection(Section section) const = 0;
148 
149  // Section writing
150  virtual void wrSectionBegin(Section section) = 0;
151  virtual void wrSectionEnd(Section section) = 0;
152  virtual void wrEOFSection() = 0;
153 
154  // Section reading
155  virtual Section rdSection() const = 0;
156  virtual Section curSection() const = 0;
157  virtual void skipSection() const = 0;
158  virtual void rdBackSection() const = 0;
159  virtual bool checkEOF() const = 0;
160 
161  // Substitutions processing
162  virtual Substitutor *subst() const = 0;
163  virtual void makeSubstitutions(bool bClear = true) const = 0;
164  virtual OdRxObjectPtr getSubstitutor() const = 0;
165  virtual void setSubstitutor(OdRxObject *pSubst) = 0;
166 
167  // Arbitrary data
168  virtual void setArbitraryData(const OdChar *pName, OdRxObject *pObject) = 0;
169  virtual OdRxObjectPtr getArbitraryData(const OdChar *pName) const = 0;
170  virtual bool hasArbitraryData(const OdChar *pName) const = 0;
171  virtual void clearArbitraryData() = 0;
172 
173  // Pointers registration
174  virtual void registerPtr(const void *pPtr) = 0;
175  virtual void unregisterPtr(const void *pPtr) = 0;
176  virtual bool isPtrRegistered(const void *pPtr) const = 0;
177  virtual void clearRegisteredPtrs() = 0;
178 
179  // Process handles
180  virtual void wrHandle(OdDbStub *pHandle) = 0;
181  virtual OdDbStub *rdHandle() const = 0;
182 
183  // Process classes
184  virtual void wrClass(OdRxObject *pObj) = 0;
185  virtual OdRxObjectPtr rdClass() const = 0;
186 
187  // Process raw data
188  virtual void wrRawData(const void *pData, OdUInt32 nDataSize) = 0;
189  virtual void rdRawData(void *pData, OdUInt32 nDataSize) const = 0;
190 
191  // Process data primitives
192  virtual void wrBool(bool bVal);
193  virtual bool rdBool() const;
194 
195  virtual void wrInt(int val);
196  virtual int rdInt() const;
197 
198  virtual void wrUInt(unsigned int val);
199  virtual unsigned int rdUInt() const;
200 
201  virtual void wrChar(char val);
202  virtual char rdChar() const;
203 
204  virtual void wrUInt8(OdUInt8 val);
205  virtual OdUInt8 rdUInt8() const;
206 
207  virtual void wrInt16(OdInt16 val);
208  virtual OdInt16 rdInt16() const;
209 
210  virtual void wrUInt16(OdUInt16 val);
211  virtual OdUInt16 rdUInt16() const;
212 
213  virtual void wrInt32(OdInt32 val);
214  virtual OdInt32 rdInt32() const;
215 
216  virtual void wrUInt32(OdUInt32 val);
217  virtual OdUInt32 rdUInt32() const;
218 
219  virtual void wrInt64(OdInt64 val);
220  virtual OdInt64 rdInt64() const;
221 
222  virtual void wrUInt64(OdUInt64 val);
223  virtual OdUInt64 rdUInt64() const;
224 
225  virtual void wrIntPtr(OdIntPtr val);
226  virtual OdIntPtr rdIntPtr() const;
227 
228  void wrPtr(const void *pPtr) { wrIntPtr((OdIntPtr)pPtr); }
229  void *rdPtr() const { return (void*)rdIntPtr(); }
230 
231  virtual void wrCOLORREF(ODCOLORREF val);
232  virtual ODCOLORREF rdCOLORREF() const;
233 
234  virtual void wrFloat(float val);
235  virtual float rdFloat() const;
236 
237  virtual void wrDouble(double val);
238  virtual double rdDouble() const;
239 
240  virtual void wrPoint2d(const OdGePoint2d &pt);
241  virtual void rdPoint2d(OdGePoint2d &pt) const;
242 
243  virtual void wrVector2d(const OdGeVector2d &vec);
244  virtual void rdVector2d(OdGeVector2d &vec) const;
245 
246  virtual void wrPoint3d(const OdGePoint3d &pt);
247  virtual void rdPoint3d(OdGePoint3d &pt) const;
248 
249  virtual void wrVector3d(const OdGeVector3d &vec);
250  virtual void rdVector3d(OdGeVector3d &vec) const;
251 
252  virtual void wrMatrix3d(const OdGeMatrix3d &mat);
253  virtual void rdMatrix3d(OdGeMatrix3d &mat) const;
254 
255  virtual void wrExtents3d(const OdGeExtents3d &ext);
256  virtual void rdExtents3d(OdGeExtents3d &ext) const;
257 
258  virtual void wrAnsiString(const OdAnsiString &str);
259  virtual void rdAnsiString(OdAnsiString &str) const;
260  OdAnsiString rdAnsiStringRet() const { OdAnsiString str; rdAnsiString(str); return str; }
261 
262  virtual void wrString(const OdString &str);
263  virtual void rdString(OdString &str) const;
264  OdString rdStringRet() const { OdString str; rdString(str); return str; }
265 
266  virtual void wrUInt8Array (const OdUInt8Array& arr);
267  virtual void wrUInt16Array(const OdUInt16Array& arr);
268  virtual void wrUInt16Array(OdUInt32 count, const OdUInt16* arr);
269  virtual void wrUInt32Array(const OdUInt32Array& arr);
270  virtual void wrUInt32Array(const OdUInt32Vector& arr);
271  virtual void wrUInt64Array(const OdUInt64Array& arr);
272  virtual void wrUInt64Array(const OdUInt64Vector& vec);
273  virtual void wrUInt64Array(OdUInt32 count, const OdUInt64* arr);
274  virtual void wrIntArray (const OdIntArray& arr);
275  virtual void wrFloatArray (const OdFloatArray& arr);
276  virtual void wrFloatArray (OdUInt32 count, const float* arr);
277  virtual void wrPoint2dArray (const OdGePoint2dArray& arr);
278  virtual void wrPoint3dArray (const OdGePoint3dArray& arr);
279  virtual void wrDbStubPtrArray(const OdDbStubPtrArray& arr);
280  virtual void wrGsDCRect (const OdGsDCRect& rc);
281  virtual void wrGsDCRectDouble(const OdGsDCRectDouble& rcd);
282 
283  virtual void rdUInt8Array (OdUInt8Array& arr);
284  virtual void rdUInt16Array(OdUInt16Array& arr);
285  virtual void rdUInt16Array(OdUInt32 count, OdUInt16* arr);
286  virtual void rdUInt32Array(OdUInt32Array& arr);
287  virtual void rdUInt32Array(OdUInt32Vector& arr);
288  virtual void rdUInt64Array(OdUInt64Array& arr);
289  virtual void rdUInt64Array(OdUInt64Vector& vec);
290  virtual void rdUInt64Array(OdUInt32 count, OdUInt64* arr);
291  virtual void rdIntArray (OdIntArray& arr);
292  virtual void rdFloatArray (OdFloatArray& arr);
293  virtual void rdFloatArray (OdUInt32 count, float* arr);
294  virtual void rdPoint2dArray (OdGePoint2dArray& arr);
295  virtual void rdPoint3dArray (OdGePoint3dArray& arr);
296  virtual void rdDbStubPtrArray(OdDbStubPtrArray& arr);
297  virtual void rdGsDCRect (OdGsDCRect& dcrc);
298  virtual void rdGsDCRectDouble(OdGsDCRectDouble& dcrcd);
299 
300  // Create filer object
301  static OdSmartPtr<OdGsFiler> createObject(OdStreamBuf *pStream, bool bForWrite, const OdDbBaseDatabase *pDb, OdUInt32 nVersion = kVLast);
302 };
303 
305 
306 #define OdGsFiler_wrArray(filer, arry, wrFunc) \
307  { \
308  filer.wrUInt32(arry.size()); \
309  for (OdUInt32 nVal = 0; nVal < arry.size(); nVal++) \
310  filer.wrFunc(arry.getPtr()[nVal]); \
311  }
312 #define OdGsFilerPtr_wrArray(pFiler, arry, wrFunc) \
313  OdGsFiler_wrArray((*pFiler), arry, wrFunc)
314 
315 #define OdGsFiler_wrArrayRaw(filer, arry, typSz) \
316  { \
317  filer.wrUInt32(arry.size()); \
318  if (!arry.isEmpty()) \
319  filer.wrRawData(arry.getPtr(), arry.size() * typSz); \
320  }
321 #define OdGsFilerPtr_wrArrayRaw(pFiler, arry, typSz) \
322  OdGsFiler_wrArrayRaw((*pFiler), arry, typSz)
323 
324 #define OdGsFiler_rdArray(filer, arry, rdFunc) \
325  { \
326  arry.clear(); \
327  OdUInt32 nElems = filer.rdUInt32(); \
328  arry.setPhysicalLength(nElems); \
329  for (OdUInt32 nElem = 0; nElem < nElems; nElem++) \
330  arry.push_back(filer.rdFunc()); \
331  }
332 #define OdGsFilerPtr_rdArray(pFiler, arry, rdFunc) \
333  OdGsFiler_rdArray((*pFiler), arry, rdFunc)
334 
335 #define OdGsFiler_rdArrayArg(filer, arry, rdFunc) \
336  { \
337  OdUInt32 nElems = filer.rdUInt32(); \
338  arry.resize(nElems); \
339  for (OdUInt32 nElem = 0; nElem < nElems; nElem++) \
340  filer.rdFunc(arry[nElem]); \
341  }
342 #define OdGsFilerPtr_rdArrayArg(pFiler, arry, rdFunc) \
343  OdGsFiler_rdArrayArg((*pFiler), arry, rdFunc)
344 
345 #define OdGsFiler_rdArrayRaw(filer, arry, typSz) \
346  { \
347  OdUInt32 nElems = filer.rdUInt32(); \
348  arry.resize(nElems); \
349  if (nElems) \
350  filer.rdRawData(arry.asArrayPtr(), nElems * typSz); \
351  }
352 #define OdGsFilerPtr_rdArrayRaw(pFiler, arry, typSz) \
353  OdGsFiler_rdArrayRaw((*pFiler), arry, typSz)
354 
358 {
359 public:
361 public:
362  virtual OdGsFilerPtr createGsFiler(OdStreamBuf *pStream, bool bForWrite, const OdDbBaseDatabase *pDb) = 0;
363 };
364 
366 
370 {
371 public:
373 public:
374  virtual OdBinaryData computeDbHash(const OdDbBaseDatabase *pDb) = 0;
375 };
376 
378 
379 #include "TD_PackPop.h"
380 
381 #endif // __OD_GS_FILER_H__
#define GS_TOOLKIT_EXPORT
Definition: GsExport.h:37
OdArray< OdGePoint2d, OdMemoryAllocator< OdGePoint2d > > OdGePoint2dArray
Definition: GsFiler.h:58
OdSmartPtr< OdGsFiler > OdGsFilerPtr
Definition: GsFiler.h:304
OdRxObject OdDbBaseDatabase
Definition: GsFiler.h:49
OdSmartPtr< OdGsFilerDbHashPE > OdGsFilerDbHashPEPtr
Definition: GsFiler.h:377
OdSmartPtr< OdGsFilerCreatorPE > OdGsFilerCreatorPEPtr
Definition: GsFiler.h:365
OdArray< float, OdMemoryAllocator< float > > OdFloatArray
Definition: GsFiler.h:56
#define NULL
Definition: GsProperties.h:177
#define ODCOLORREF
Definition: OdPlatform.h:883
unsigned int OdUInt32
short OdInt16
unsigned short OdUInt16
int OdInt32
unsigned char OdUInt8
ptrdiff_t OdIntPtr
wchar_t OdChar
virtual OdGsFilerPtr createGsFiler(OdStreamBuf *pStream, bool bForWrite, const OdDbBaseDatabase *pDb)=0
ODRX_DECLARE_MEMBERS(OdGsFilerCreatorPE)
virtual OdBinaryData computeDbHash(const OdDbBaseDatabase *pDb)=0
ODRX_DECLARE_MEMBERS(OdGsFilerDbHashPE)
virtual void wrPoint3d(const OdGePoint3d &pt)
virtual void wrFloatArray(const OdFloatArray &arr)
virtual void wrUInt16Array(OdUInt32 count, const OdUInt16 *arr)
virtual void wrClass(OdRxObject *pObj)=0
virtual void wrUInt(unsigned int val)
static OdSmartPtr< OdGsFiler > createObject(OdStreamBuf *pStream, bool bForWrite, const OdDbBaseDatabase *pDb, OdUInt32 nVersion=kVLast)
virtual void wrFloatArray(OdUInt32 count, const float *arr)
virtual unsigned int rdUInt() const
virtual void wrDouble(double val)
virtual void rdVector2d(OdGeVector2d &vec) const
virtual bool hasArbitraryData(const OdChar *pName) const =0
virtual void setDatabase(const OdDbBaseDatabase *pDb)=0
virtual bool setStream(OdStreamBuf *pStream, bool bWrite=false)=0
virtual OdRxObjectPtr rdClass() const =0
virtual void clearRegisteredPtrs()=0
virtual void rdPoint2d(OdGePoint2d &pt) const
virtual OdInt16 rdInt16() const
virtual void wrUInt32Array(const OdUInt32Array &arr)
virtual void wrInt64(OdInt64 val)
virtual void wrEOFSection()=0
virtual bool isPtrRegistered(const void *pPtr) const =0
virtual ~OdGsFiler()
Definition: GsFiler.h:68
virtual void wrIntArray(const OdIntArray &arr)
void * rdPtr() const
Definition: GsFiler.h:229
virtual void skipSection() const =0
virtual void makeSubstitutions(bool bClear=true) const =0
virtual void clearArbitraryData()=0
virtual void rdMatrix3d(OdGeMatrix3d &mat) const
virtual void rdGsDCRectDouble(OdGsDCRectDouble &dcrcd)
virtual char rdChar() const
virtual void wrVector2d(const OdGeVector2d &vec)
virtual void wrUInt16Array(const OdUInt16Array &arr)
virtual void wrFloat(float val)
virtual void rdUInt64Array(OdUInt64Vector &vec)
virtual void wrPoint3dArray(const OdGePoint3dArray &arr)
OdAnsiString rdAnsiStringRet() const
Definition: GsFiler.h:260
virtual void rdUInt16Array(OdUInt16Array &arr)
virtual void wrUInt64Array(const OdUInt64Vector &vec)
virtual void wrSectionEnd(Section section)=0
virtual OdInt32 rdInt32() const
virtual void rdUInt8Array(OdUInt8Array &arr)
virtual void wrIntPtr(OdIntPtr val)
virtual void rdDbStubPtrArray(OdDbStubPtrArray &arr)
virtual void wrUInt16(OdUInt16 val)
virtual void rdVector3d(OdGeVector3d &vec) const
virtual void setSubstitutor(OdRxObject *pSubst)=0
virtual void rdPoint3dArray(OdGePoint3dArray &arr)
virtual void wrString(const OdString &str)
virtual void rdAnsiString(OdAnsiString &str) const
virtual OdUInt8 rdUInt8() const
virtual bool isReadSection(Section section) const =0
virtual void rdExtents3d(OdGeExtents3d &ext) const
virtual void rdUInt16Array(OdUInt32 count, OdUInt16 *arr)
virtual void wrInt16(OdInt16 val)
virtual void wrChar(char val)
virtual Substitutor * subst() const =0
virtual void rdPoint2dArray(OdGePoint2dArray &arr)
virtual bool checkDbHash(const OdDbBaseDatabase *pDb)=0
virtual void rdFloatArray(OdUInt32 count, float *arr)
virtual void wrUInt64Array(const OdUInt64Array &arr)
virtual void wrUInt32Array(const OdUInt32Vector &arr)
virtual void rdUInt64Array(OdUInt32 count, OdUInt64 *arr)
OdString rdStringRet() const
Definition: GsFiler.h:264
virtual OdUInt64 rdUInt64() const
virtual int rdInt() const
virtual float rdFloat() const
virtual OdRxObjectPtr getArbitraryData(const OdChar *pName) const =0
virtual OdUInt32 version() const =0
virtual void wrHandle(OdDbStub *pHandle)=0
virtual void rdGsDCRect(OdGsDCRect &dcrc)
virtual void rdFloatArray(OdFloatArray &arr)
virtual void wrUInt8(OdUInt8 val)
virtual void wrUInt64(OdUInt64 val)
virtual void wrGsDCRect(const OdGsDCRect &rc)
virtual void wrCOLORREF(ODCOLORREF val)
virtual void wrDbHash(const OdDbBaseDatabase *pDb)=0
virtual void rdIntArray(OdIntArray &arr)
virtual void wrAnsiString(const OdAnsiString &str)
virtual void wrRawData(const void *pData, OdUInt32 nDataSize)=0
virtual bool rdBool() const
ODRX_DECLARE_MEMBERS(OdGsFiler)
virtual void wrDbStubPtrArray(const OdDbStubPtrArray &arr)
virtual Section rdSection() const =0
virtual void wrPoint2dArray(const OdGePoint2dArray &arr)
@ kClientMaterialSection
Definition: GsFiler.h:87
@ kLinkedDeviceSection
Definition: GsFiler.h:89
@ kMetafileSection
Definition: GsFiler.h:85
@ kDatabaseLinkSection
Definition: GsFiler.h:75
@ kClientViewSection
Definition: GsFiler.h:80
@ kClientDeviceSection
Definition: GsFiler.h:78
@ kClientNodeSection
Definition: GsFiler.h:84
@ kDeviceSection
Definition: GsFiler.h:77
@ kNodeSection
Definition: GsFiler.h:83
@ kGsModuleSection
Definition: GsFiler.h:76
@ kViewSection
Definition: GsFiler.h:79
@ kClientModelSection
Definition: GsFiler.h:82
@ kBlockRefImplSection
Definition: GsFiler.h:88
@ kRenditionSection
Definition: GsFiler.h:90
@ kClientMetafileSection
Definition: GsFiler.h:86
@ kModelSection
Definition: GsFiler.h:81
virtual void rdPoint3d(OdGePoint3d &pt) const
virtual void setVersion(OdUInt32 nVersion)=0
virtual void rdUInt32Array(OdUInt32Vector &arr)
virtual void wrBool(bool bVal)
virtual Section curSection() const =0
virtual void rdString(OdString &str) const
void wrPtr(const void *pPtr)
Definition: GsFiler.h:228
virtual void setReadSection(Section section, bool bSet)=0
virtual void wrInt(int val)
virtual void setWriteSections(OdUInt64 nSections)=0
virtual void wrMatrix3d(const OdGeMatrix3d &mat)
virtual void wrUInt64Array(OdUInt32 count, const OdUInt64 *arr)
virtual bool checkEOF() const =0
virtual void rdUInt64Array(OdUInt64Array &arr)
virtual void wrUInt8Array(const OdUInt8Array &arr)
virtual void rdRawData(void *pData, OdUInt32 nDataSize) const =0
virtual void unregisterPtr(const void *pPtr)=0
virtual OdRxObjectPtr getSubstitutor() const =0
virtual bool isWriteSection(Section section) const =0
virtual OdDbStub * rdHandle() const =0
virtual ODCOLORREF rdCOLORREF() const
virtual void setReadSections(OdUInt64 nSections)=0
virtual void wrGsDCRectDouble(const OdGsDCRectDouble &rcd)
virtual OdUInt32 rdUInt32() const
virtual OdInt64 rdInt64() const
virtual void rdBackSection() const =0
virtual OdUInt16 rdUInt16() const
virtual void wrPoint2d(const OdGePoint2d &pt)
OdGsFiler()
Definition: GsFiler.h:67
virtual void registerPtr(const void *pPtr)=0
virtual void setWriteSection(Section section, bool bSet)=0
virtual OdDbBaseDatabase * getDatabase() const =0
virtual void wrInt32(OdInt32 val)
virtual OdIntPtr rdIntPtr() const
virtual void wrSectionBegin(Section section)=0
virtual OdStreamBufPtr getStream() const =0
virtual void wrExtents3d(const OdGeExtents3d &ext)
virtual void rdUInt32Array(OdUInt32Array &arr)
virtual void wrVector3d(const OdGeVector3d &vec)
virtual void setArbitraryData(const OdChar *pName, OdRxObject *pObject)=0
virtual double rdDouble() const
virtual void wrUInt32(OdUInt32 val)
Definition: Gs.h:133
Definition: Int64.h:43
GLsizeiptr size
Definition: gles2_ext.h:182
typedef void(APIENTRYP PFNGLACTIVETEXTUREPROC)(GLenum texture)
GLsizei GLsizei * count
Definition: gles2_ext.h:276
virtual void applySubstitution(void *pPlace, const void *pValue, SetPtrFunc pSetFunc)
Definition: GsFiler.h:105
virtual void registerSubstitution(const void *pValue, const void *pSubstitution, OdUInt32 size=sizeof(OdIntPtr), bool bRegister=true, bool bImmediate=false)=0
virtual void requestSubstitution(void *pPlace, const void *pValue, OdUInt32 size=sizeof(OdIntPtr), bool bRegister=true, bool bImmediate=true)=0
virtual void clearSubstitutions(const void *pValue=NULL, OdUInt32 size=0)=0
virtual void requestSubstitution(void *pPlace, OdGsFiler::SubstitutionActuator *pActuator, const void *pValue, OdUInt32 size=sizeof(OdIntPtr), bool bRegister=true, bool bImmediate=true)=0
virtual void requestSubstitution(OdBaseObjectPtr *pPlace, const void *pValue, bool bRegister=true, bool bImmediate=true)=0
virtual void runSubstitutions(const void *pValue=NULL, OdUInt32 size=0, bool bClear=true)=0