CFx SDK Documentation  2020SP3
Tf.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 
25 #ifndef _OD_TF_Included_
26 #define _OD_TF_Included_
27 
28 #include "DbHandle.h"
29 #include "DbObjectId.h"
30 #include "DbDatabase.h"
31 #include "Ge/GePoint2d.h"
32 #include "Ge/GePoint3d.h"
33 #include "Ge/GeScale3d.h"
34 
35 #include "TD_PackPush.h"
36 
37 #ifdef TF_DLL_EXPORTS
38 #define TFDLL_EXPORT OD_TOOLKIT_EXPORT
39 #define TFDLL_EXPORT_STATIC OD_STATIC_EXPORT
40 #else
41 #define TFDLL_EXPORT OD_TOOLKIT_IMPORT
42 #define TFDLL_EXPORT_STATIC OD_STATIC_IMPORT
43 #endif
44 
45 struct OdTfFiler
46 {
47  virtual OdRxObject* database() const = 0;
48 
49  virtual void seek(OdInt64 offset, OdDb::FilerSeekType seekType) = 0;
50 
54  virtual OdUInt64 tell() const = 0;
55 
59  virtual bool rdBool() = 0;
60 
65  virtual OdString rdString() = 0;
66 
73  virtual void rdBytes(
74  void* buffer,
75  OdUInt32 numBytes) = 0;
76 
80  virtual OdInt8 rdInt8() = 0;
81 
85  virtual OdUInt8 rdUInt8() = 0;
86 
90  virtual OdInt16 rdInt16() = 0;
91 
95  virtual OdInt32 rdInt32() = 0;
96 
100  virtual OdInt64 rdInt64() = 0;
101 
105  virtual double rdDouble() = 0;
106 
110  virtual OdDbHandle rdDbHandle() = 0;
111 
115  virtual OdDbStub* rdSoftOwnershipId() = 0;
116 
120  virtual OdDbStub* rdHardOwnershipId() = 0;
121 
125  virtual OdDbStub* rdHardPointerId() = 0;
126 
130  virtual OdDbStub* rdSoftPointerId() = 0;
131 
135  virtual OdGePoint2d rdPoint2d() = 0;
136 
140  virtual OdGePoint3d rdPoint3d() = 0;
141 
145  virtual OdGeVector2d rdVector2d() = 0;
146 
150  virtual OdGeVector3d rdVector3d() = 0;
151 
155  virtual OdGeScale3d rdScale3d() = 0;
156 
162  virtual void wrBool(
163  bool value) = 0;
164 
170  virtual void wrString(
171  const OdString &value) = 0;
172 
179  virtual void wrBytes(
180  const void* buffer,
181  OdUInt32 numBytes) = 0;
182 
188  virtual void wrInt8(
189  OdInt8 value) = 0;
190 
196  virtual void wrUInt8(
197  OdUInt8 value) = 0;
198 
204  virtual void wrInt16(
205  OdInt16 value) = 0;
206 
212  virtual void wrInt32(
213  OdInt32 value) = 0;
214 
220  virtual void wrInt64(
221  OdInt64 value) = 0;
222 
223 
229  virtual void wrDouble(double value) = 0;
230 
236  virtual void wrDbHandle(
237  const OdDbHandle& value) = 0;
238 
244  virtual void wrSoftOwnershipId(
245  OdDbStub* value) = 0;
246 
252  virtual void wrHardOwnershipId(
253  OdDbStub* value) = 0;
254 
260  virtual void wrSoftPointerId(
261  OdDbStub* value) = 0;
262 
268  virtual void wrHardPointerId(
269  OdDbStub* value) = 0;
270 
276  virtual void wrPoint2d(
277  const OdGePoint2d& value) = 0;
278 
284  virtual void wrPoint3d(
285  const OdGePoint3d& value) = 0;
286 
292  virtual void wrVector2d(
293  const OdGeVector2d& value) = 0;
294 
300  virtual void wrVector3d(
301  const OdGeVector3d& value) = 0;
302 
308  virtual void wrScale3d(
309  const OdGeScale3d& value) = 0;
310 
311  virtual void wrSubobject(int id, const char* name) = 0;
312  virtual const char* rdSubobject(int& id) = 0;
313  virtual void wrDateTime(OdTimeStamp) = 0;
314  virtual void rdDateTime(OdTimeStamp&) = 0;
315 };
316 
317 
319 {
321  virtual int schemaVersion(OdRxObject*) = 0;
322  virtual OdString schema(OdRxObject*) = 0;
323  virtual bool in(OdRxObject*, OdTfFiler*) = 0;
324  virtual void out(OdRxObject*, OdTfFiler*) = 0;
325 };
326 
328 
329 namespace OdTf
330 {
331  enum TagsEnum {
332  Element = 1,
334  Array = 4,
335  version = 8,
336  EndClass = 16,
337  Mark = 32,
338 
339  EndTagMask = 64
340  };
341 
343  {
346  deletedInVersion = 2
347  };
348 
351  isBreak = 2,
357  isSum = 128
358  };
359 
362  isOwner = 2,
363  dwgVer = 4
364  };
365 
367  breakValue = 1
368  };
369 
371  kTrue = 1,
372  kFalse = 2,
373  kNot = 4,
374  kAnd = 8,
375  kLessThan = 16,
376  kGreaterThan = 32
377  };
378 
381  reduceIn = 2,
382  limitLen = 4,
384  mul = 16,
385  value = 32,
386  cacheValue = 64
387  };
388 
390  {
416  Empty
417  };
418 }
419 
420 
421 #include "TD_PackPop.h"
422 
423 #endif // _OD_TF_Included_
OdTfFiler::rdDateTime
virtual void rdDateTime(OdTimeStamp &)=0
OdTfFiler::wrUInt8
virtual void wrUInt8(OdUInt8 value)=0
OdTfFiler::seek
virtual void seek(OdInt64 offset, OdDb::FilerSeekType seekType)=0
OdTf::DateTime
@ DateTime
Definition: Tf.h:413
OdGeVector3d
Definition: GeVector3d.h:54
OdString
Definition: OdString.h:95
OdTf::increaseIn
@ increaseIn
Definition: Tf.h:380
OdTf::version
@ version
Definition: Tf.h:335
OdTfFiler::wrVector2d
virtual void wrVector2d(const OdGeVector2d &value)=0
OdUInt8
unsigned char OdUInt8
Definition: OdPlatformSettings.h:759
OdTfFiler::wrString
virtual void wrString(const OdString &value)=0
OdTfFiler::wrInt16
virtual void wrInt16(OdInt16 value)=0
name
GLuint const GLchar * name
Definition: gles2_ext.h:265
OdTimeStamp
Definition: OdTimeStamp.h:42
OdInt64
Definition: Int64.h:43
OdTfFiler::rdSoftPointerId
virtual OdDbStub * rdSoftPointerId()=0
OdTf::ElementAttributesEnum
ElementAttributesEnum
Definition: Tf.h:349
OdTf::Element
@ Element
Definition: Tf.h:332
OdTf::TableQueue
@ TableQueue
Definition: Tf.h:356
TFDLL_EXPORT
#define TFDLL_EXPORT
Definition: Tf.h:41
OdTfFiler::wrSoftOwnershipId
virtual void wrSoftOwnershipId(OdDbStub *value)=0
OdTf::Vector3d
@ Vector3d
Definition: Tf.h:411
OdTfFiler::wrScale3d
virtual void wrScale3d(const OdGeScale3d &value)=0
OdTf::SoftPointerId
@ SoftPointerId
Definition: Tf.h:406
buffer
GLuint buffer
Definition: gles2_ext.h:178
OdTfObjectPEPtr
OdSmartPtr< OdTfObjectPE > OdTfObjectPEPtr
Definition: Tf.h:327
GeScale3d.h
OdTfFiler::wrHardOwnershipId
virtual void wrHardOwnershipId(OdDbStub *value)=0
OdTfFiler::wrInt8
virtual void wrInt8(OdInt8 value)=0
OdTfFiler::rdHardPointerId
virtual OdDbStub * rdHardPointerId()=0
OdTfFiler::rdInt8
virtual OdInt8 rdInt8()=0
OdTf::Int
@ Int
Definition: Tf.h:395
OdTfFiler::rdScale3d
virtual OdGeScale3d rdScale3d()=0
OdRxObject
Definition: RxObject.h:564
OdTf::Table
@ Table
Definition: Tf.h:415
OdTf::isSum
@ isSum
Definition: Tf.h:357
OdTf::isMarkCondition
@ isMarkCondition
Definition: Tf.h:361
OdGeScale3d
Definition: GeScale3d.h:47
OdTf::deletedInVersion
@ deletedInVersion
Definition: Tf.h:346
OdTf::limitLen
@ limitLen
Definition: Tf.h:382
OdTfFiler::tell
virtual OdUInt64 tell() const =0
OdTf::HexBinaryAttributesEnum
HexBinaryAttributesEnum
Definition: Tf.h:379
OdTfFiler::rdDbHandle
virtual OdDbHandle rdDbHandle()=0
OdTf::Short
@ Short
Definition: Tf.h:394
OdTfFiler::rdSoftOwnershipId
virtual OdDbStub * rdSoftOwnershipId()=0
TD_PackPop.h
OdTf::Handle
@ Handle
Definition: Tf.h:403
OdTf::EndClass
@ EndClass
Definition: Tf.h:336
OdTf::Condition
@ Condition
Definition: Tf.h:333
OdTf::reduceIn
@ reduceIn
Definition: Tf.h:381
OdDb::FilerSeekType
FilerSeekType
Definition: OdStreamBuf.h:49
OdUInt32
unsigned int OdUInt32
Definition: OdPlatformSettings.h:783
OdInt16
short OdInt16
Definition: OdPlatformSettings.h:756
OdTf::originalVersion
@ originalVersion
Definition: Tf.h:344
OdTf::SoftOwnershipId
@ SoftOwnershipId
Definition: Tf.h:404
OdTfFiler::rdInt16
virtual OdInt16 rdInt16()=0
OdTf::isOwner
@ isOwner
Definition: Tf.h:362
OdTfFiler::wrSoftPointerId
virtual void wrSoftPointerId(OdDbStub *value)=0
OdTf::isTableQueue
@ isTableQueue
Definition: Tf.h:354
OdTfFiler::wrBytes
virtual void wrBytes(const void *buffer, OdUInt32 numBytes)=0
OdTf::dwgVer
@ dwgVer
Definition: Tf.h:363
OdTf
Definition: Tf.h:330
OdTfFiler::rdSubobject
virtual const char * rdSubobject(int &id)=0
OdSmartPtr
Definition: SmartPtr.h:58
OdTf::addInVersion
@ addInVersion
Definition: Tf.h:345
OdGePoint3d
Definition: GePoint3d.h:55
OdTf::EndTagMask
@ EndTagMask
Definition: Tf.h:339
OdTfFiler::wrHardPointerId
virtual void wrHardPointerId(OdDbStub *value)=0
DbDatabase.h
OdTf::Point2d
@ Point2d
Definition: Tf.h:408
offset
GLintptr offset
Definition: gles2_ext.h:183
OdInt32
int OdInt32
Definition: OdPlatformSettings.h:782
OdTf::breakValue
@ breakValue
Definition: Tf.h:367
OdTfObjectPE
Definition: Tf.h:319
OdTfFiler::rdPoint2d
virtual OdGePoint2d rdPoint2d()=0
GePoint3d.h
OdTfFiler::rdVector2d
virtual OdGeVector2d rdVector2d()=0
OdTfFiler::rdBool
virtual bool rdBool()=0
DbObjectId.h
OdTf::TypesEnum
TypesEnum
Definition: Tf.h:390
OdTf::HexBinary
@ HexBinary
Definition: Tf.h:401
DbHandle.h
OdTfFiler::rdInt32
virtual OdInt32 rdInt32()=0
OdTf::Long
@ Long
Definition: Tf.h:399
OdTfFiler::rdString
virtual OdString rdString()=0
OdTf::isBreak
@ isBreak
Definition: Tf.h:351
OdTf::Mark
@ Mark
Definition: Tf.h:337
OdTf::Byte
@ Byte
Definition: Tf.h:393
OdTfObjectPE::schema
virtual OdString schema(OdRxObject *)=0
OdTf::HardPointerId
@ HardPointerId
Definition: Tf.h:407
OdTf::cacheValue
@ cacheValue
Definition: Tf.h:386
OdGeVector2d
Definition: GeVector2d.h:51
OdTf::ConditionOperatorsEnum
ConditionOperatorsEnum
Definition: Tf.h:370
OdTf::kLessThan
@ kLessThan
Definition: Tf.h:375
OdTf::Empty
@ Empty
Definition: Tf.h:416
OdTfFiler::rdBytes
virtual void rdBytes(void *buffer, OdUInt32 numBytes)=0
TD_PackPush.h
OdTf::kGreaterThan
@ kGreaterThan
Definition: Tf.h:376
OdTf::Bool
@ Bool
Definition: Tf.h:392
OdTf::mul
@ mul
Definition: Tf.h:384
OdInt8
signed char OdInt8
Definition: OdPlatformSettings.h:755
OdTfObjectPE::schemaVersion
virtual int schemaVersion(OdRxObject *)=0
OdTfFiler::wrVector3d
virtual void wrVector3d(const OdGeVector3d &value)=0
OdTf::DataEnd
@ DataEnd
Definition: Tf.h:414
OdTfFiler::wrInt32
virtual void wrInt32(OdInt32 value)=0
OdTfFiler::rdHardOwnershipId
virtual OdDbStub * rdHardOwnershipId()=0
OdTf::isTableCache
@ isTableCache
Definition: Tf.h:355
OdTf::TagsEnum
TagsEnum
Definition: Tf.h:331
OdTf::Array
@ Array
Definition: Tf.h:334
OdTfObjectPE::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdTfObjectPE)
OdTf::Point3d
@ Point3d
Definition: Tf.h:409
OdTfObjectPE::in
virtual bool in(OdRxObject *, OdTfFiler *)=0
OdTfFiler::wrBool
virtual void wrBool(bool value)=0
OdTfFiler
Definition: Tf.h:46
OdTf::Subclass
@ Subclass
Definition: Tf.h:391
OdTf::String
@ String
Definition: Tf.h:402
OdTfFiler::rdInt64
virtual OdInt64 rdInt64()=0
OdTf::isTableName
@ isTableName
Definition: Tf.h:352
OdTf::ConditionAttributesEnum
ConditionAttributesEnum
Definition: Tf.h:360
OdTfObjectPE::out
virtual void out(OdRxObject *, OdTfFiler *)=0
OdTf::kNot
@ kNot
Definition: Tf.h:373
OdTf::UnsignedInt
@ UnsignedInt
Definition: Tf.h:398
OdTf::UnsignedShort
@ UnsignedShort
Definition: Tf.h:397
OdDbHandle
Definition: DbHandle.h:67
OdTf::Scale3d
@ Scale3d
Definition: Tf.h:412
OdTfFiler::wrSubobject
virtual void wrSubobject(int id, const char *name)=0
value
GLsizei const GLfloat * value
Definition: gles2_ext.h:302
OdTf::UnsignedByte
@ UnsignedByte
Definition: Tf.h:396
OdTfFiler::wrInt64
virtual void wrInt64(OdInt64 value)=0
OdTfFiler::rdVector3d
virtual OdGeVector3d rdVector3d()=0
OdTf::kTrue
@ kTrue
Definition: Tf.h:371
OdTfFiler::wrDouble
virtual void wrDouble(double value)=0
OdTf::kAnd
@ kAnd
Definition: Tf.h:374
OdTf::isCacheValue
@ isCacheValue
Definition: Tf.h:350
OdTf::kFalse
@ kFalse
Definition: Tf.h:372
OdTf::ArrayAttributesEnum
ArrayAttributesEnum
Definition: Tf.h:366
OdTf::Vector2d
@ Vector2d
Definition: Tf.h:410
OdTfFiler::wrPoint2d
virtual void wrPoint2d(const OdGePoint2d &value)=0
GePoint2d.h
OdTfFiler::rdPoint3d
virtual OdGePoint3d rdPoint3d()=0
OdTfFiler::wrDbHandle
virtual void wrDbHandle(const OdDbHandle &value)=0
OdTf::ClassVersionEnum
ClassVersionEnum
Definition: Tf.h:343
OdTfFiler::wrPoint3d
virtual void wrPoint3d(const OdGePoint3d &value)=0
OdTfFiler::database
virtual OdRxObject * database() const =0
OdTfFiler::rdUInt8
virtual OdUInt8 rdUInt8()=0
OdTfFiler::rdDouble
virtual double rdDouble()=0
OdTfFiler::wrDateTime
virtual void wrDateTime(OdTimeStamp)=0
OdTf::countBytes
@ countBytes
Definition: Tf.h:383
OdUInt64
Definition: Int64.h:137
OdTf::isContextData
@ isContextData
Definition: Tf.h:353
OdTf::HardOwnershipId
@ HardOwnershipId
Definition: Tf.h:405
OdGePoint2d
Definition: GePoint2d.h:60
OdTf::Double
@ Double
Definition: Tf.h:400