CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Tf.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, 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 Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2022 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 "Ge/GePoint2d.h"
30#include "Ge/GePoint3d.h"
31#include "Ge/GeScale3d.h"
32
33#include "TD_PackPush.h"
34
35#ifdef TF_DLL_EXPORTS
36#define TFDLL_EXPORT OD_TOOLKIT_EXPORT
37#define TFDLL_EXPORT_STATIC OD_STATIC_EXPORT
38#else
39#define TFDLL_EXPORT OD_TOOLKIT_IMPORT
40#define TFDLL_EXPORT_STATIC OD_STATIC_IMPORT
41#endif
42
43class OdDbStub;
44
50{
54 virtual OdRxObject* database() const = 0;
55
73 virtual void seek(OdInt64 offset, OdDb::FilerSeekType seekType) = 0;
74
78 virtual OdUInt64 tell() const = 0;
79
87 virtual bool rdBool() = 0;
88
96 virtual OdString rdString() = 0;
97
106 virtual void rdBytes(
107 void* buffer,
108 OdUInt32 numBytes) = 0;
109
117 virtual OdInt8 rdInt8() = 0;
118
126 virtual OdUInt8 rdUInt8() = 0;
127
135 virtual OdInt16 rdInt16() = 0;
136
144 virtual OdInt32 rdInt32() = 0;
145
153 virtual OdInt64 rdInt64() = 0;
154
162 virtual double rdDouble() = 0;
163
171 virtual OdDbHandle rdDbHandle() = 0;
172
180 virtual OdDbStub* rdSoftOwnershipId() = 0;
181
189 virtual OdDbStub* rdHardOwnershipId() = 0;
190
198 virtual OdDbStub* rdHardPointerId() = 0;
199
207 virtual OdDbStub* rdSoftPointerId() = 0;
208
216 virtual OdGePoint2d rdPoint2d() = 0;
217
225 virtual OdGePoint3d rdPoint3d() = 0;
226
235
244
252 virtual OdGeScale3d rdScale3d() = 0;
253
260 virtual void wrBool(
261 bool value) = 0;
262
269 virtual void wrString(
270 const OdString &value) = 0;
271
280 virtual void wrBytes(
281 const void* buffer,
282 OdUInt32 numBytes) = 0;
283
290 virtual void wrInt8(
291 OdInt8 value) = 0;
292
299 virtual void wrUInt8(
300 OdUInt8 value) = 0;
301
308 virtual void wrInt16(
309 OdInt16 value) = 0;
310
317 virtual void wrInt32(
318 OdInt32 value) = 0;
319
326 virtual void wrInt64(
327 OdInt64 value) = 0;
328
335 virtual void wrDouble(double value) = 0;
336
343 virtual void wrDbHandle(
344 const OdDbHandle& value) = 0;
345
352 virtual void wrSoftOwnershipId(
353 OdDbStub* value) = 0;
354
361 virtual void wrHardOwnershipId(
362 OdDbStub* value) = 0;
363
370 virtual void wrSoftPointerId(
371 OdDbStub* value) = 0;
372
379 virtual void wrHardPointerId(
380 OdDbStub* value) = 0;
381
388 virtual void wrPoint2d(
389 const OdGePoint2d& value) = 0;
390
397 virtual void wrPoint3d(
398 const OdGePoint3d& value) = 0;
399
406 virtual void wrVector2d(
407 const OdGeVector2d& value) = 0;
408
415 virtual void wrVector3d(
416 const OdGeVector3d& value) = 0;
417
424 virtual void wrScale3d(
425 const OdGeScale3d& value) = 0;
426
434 virtual void wrSubobject(int id, const char* name) = 0;
435
445 virtual const char* rdSubobject(int& id) = 0;
446
453 virtual void wrDateTime(OdTimeStamp) = 0;
454
461 virtual void rdDateTime(OdTimeStamp&) = 0;
462};
463
464
466{
468 virtual int schemaVersion(OdRxObject*) = 0;
470 virtual bool in(OdRxObject*, OdTfFiler*) = 0;
471 virtual void out(OdRxObject*, OdTfFiler*) = 0;
472};
473
475
476namespace OdTf
477{
478 enum TagsEnum {
481 Array = 4,
484 Mark = 32,
485
486 EndTagMask = 64
487 };
488
490 {
494 };
495
504 isSum = 128
505 };
506
510 dwgVer = 4
511 };
512
517 };
518
520 kTrue = 1,
522 kNot = 4,
523 kAnd = 8,
525 kGreaterThan = 32
526 };
527
533 mul = 16,
534 value = 32,
535 cacheValue = 64
536 };
537
539 {
567 };
568}
569
570
571#include "TD_PackPop.h"
572
573#endif // _OD_TF_Included_
unsigned int OdUInt32
short OdInt16
signed char OdInt8
int OdInt32
unsigned char OdUInt8
OdSmartPtr< OdTfObjectPE > OdTfObjectPEPtr
Definition: Tf.h:474
#define TFDLL_EXPORT
Definition: Tf.h:39
Definition: Int64.h:43
GLuint buffer
Definition: gles2_ext.h:178
GLuint const GLchar * name
Definition: gles2_ext.h:265
GLintptr offset
Definition: gles2_ext.h:183
GLsizei const GLfloat * value
Definition: gles2_ext.h:302
FilerSeekType
Definition: OdStreamBuf.h:49
Definition: Tf.h:477
TagsEnum
Definition: Tf.h:478
@ EndTagMask
Definition: Tf.h:486
@ EndClass
Definition: Tf.h:483
@ version
Definition: Tf.h:482
@ Condition
Definition: Tf.h:480
@ Element
Definition: Tf.h:479
@ Mark
Definition: Tf.h:484
@ Array
Definition: Tf.h:481
ConditionAttributesEnum
Definition: Tf.h:507
@ isMarkCondition
Definition: Tf.h:508
@ isOwner
Definition: Tf.h:509
@ dwgVer
Definition: Tf.h:510
HexBinaryAttributesEnum
Definition: Tf.h:528
@ cacheValue
Definition: Tf.h:535
@ countBytes
Definition: Tf.h:532
@ reduceIn
Definition: Tf.h:530
@ increaseIn
Definition: Tf.h:529
@ mul
Definition: Tf.h:533
@ limitLen
Definition: Tf.h:531
TypesEnum
Definition: Tf.h:539
@ Int
Definition: Tf.h:544
@ Handle
Definition: Tf.h:552
@ Vector3d
Definition: Tf.h:560
@ String
Definition: Tf.h:551
@ HardPointerId
Definition: Tf.h:556
@ Point3d
Definition: Tf.h:558
@ Subclass
Definition: Tf.h:540
@ SoftOwnershipId
Definition: Tf.h:553
@ UnsignedByte
Definition: Tf.h:545
@ SoftPointerId
Definition: Tf.h:555
@ Vector2d
Definition: Tf.h:559
@ HardOwnershipId
Definition: Tf.h:554
@ Empty
Definition: Tf.h:565
@ DataEnd
Definition: Tf.h:563
@ Long
Definition: Tf.h:548
@ Table
Definition: Tf.h:564
@ Double
Definition: Tf.h:549
@ DateTime
Definition: Tf.h:562
@ Short
Definition: Tf.h:543
@ UnsignedInt
Definition: Tf.h:547
@ HexBinary
Definition: Tf.h:550
@ Byte
Definition: Tf.h:542
@ DoubleWithDefault
Definition: Tf.h:566
@ Bool
Definition: Tf.h:541
@ Point2d
Definition: Tf.h:557
@ Scale3d
Definition: Tf.h:561
@ UnsignedShort
Definition: Tf.h:546
ConditionOperatorsEnum
Definition: Tf.h:519
@ kTrue
Definition: Tf.h:520
@ kLessThan
Definition: Tf.h:524
@ kAnd
Definition: Tf.h:523
@ kNot
Definition: Tf.h:522
@ kGreaterThan
Definition: Tf.h:525
@ kFalse
Definition: Tf.h:521
ArrayAttributesEnum
Definition: Tf.h:513
@ increaseOn
Definition: Tf.h:515
@ breakValue
Definition: Tf.h:514
@ decreaseOn
Definition: Tf.h:516
ElementAttributesEnum
Definition: Tf.h:496
@ isContextData
Definition: Tf.h:500
@ isSum
Definition: Tf.h:504
@ isTableCache
Definition: Tf.h:502
@ isTableQueue
Definition: Tf.h:501
@ isCacheValue
Definition: Tf.h:497
@ isTableName
Definition: Tf.h:499
@ TableQueue
Definition: Tf.h:503
@ isBreak
Definition: Tf.h:498
ClassVersionEnum
Definition: Tf.h:490
@ deletedInVersion
Definition: Tf.h:493
@ addInVersion
Definition: Tf.h:492
@ originalVersion
Definition: Tf.h:491
Definition: Tf.h:50
virtual void wrBool(bool value)=0
virtual void rdBytes(void *buffer, OdUInt32 numBytes)=0
virtual void wrHardOwnershipId(OdDbStub *value)=0
virtual const char * rdSubobject(int &id)=0
virtual void seek(OdInt64 offset, OdDb::FilerSeekType seekType)=0
virtual void wrSubobject(int id, const char *name)=0
virtual OdInt8 rdInt8()=0
virtual void wrVector3d(const OdGeVector3d &value)=0
virtual bool rdBool()=0
virtual void wrDbHandle(const OdDbHandle &value)=0
virtual void wrSoftOwnershipId(OdDbStub *value)=0
virtual OdGeVector3d rdVector3d()=0
virtual void wrBytes(const void *buffer, OdUInt32 numBytes)=0
virtual OdDbHandle rdDbHandle()=0
virtual void wrScale3d(const OdGeScale3d &value)=0
virtual void wrInt64(OdInt64 value)=0
virtual void wrInt8(OdInt8 value)=0
virtual void wrDateTime(OdTimeStamp)=0
virtual OdGePoint3d rdPoint3d()=0
virtual OdGePoint2d rdPoint2d()=0
virtual OdDbStub * rdHardPointerId()=0
virtual void rdDateTime(OdTimeStamp &)=0
virtual void wrUInt8(OdUInt8 value)=0
virtual OdInt32 rdInt32()=0
virtual void wrVector2d(const OdGeVector2d &value)=0
virtual OdDbStub * rdSoftOwnershipId()=0
virtual OdInt64 rdInt64()=0
virtual void wrPoint2d(const OdGePoint2d &value)=0
virtual OdGeVector2d rdVector2d()=0
virtual void wrInt32(OdInt32 value)=0
virtual void wrHardPointerId(OdDbStub *value)=0
virtual void wrString(const OdString &value)=0
virtual OdInt16 rdInt16()=0
virtual OdUInt64 tell() const =0
virtual OdDbStub * rdSoftPointerId()=0
virtual OdDbStub * rdHardOwnershipId()=0
virtual double rdDouble()=0
virtual OdUInt8 rdUInt8()=0
virtual OdString rdString()=0
virtual void wrInt16(OdInt16 value)=0
virtual OdRxObject * database() const =0
virtual void wrDouble(double value)=0
virtual void wrSoftPointerId(OdDbStub *value)=0
virtual void wrPoint3d(const OdGePoint3d &value)=0
virtual OdGeScale3d rdScale3d()=0
virtual int schemaVersion(OdRxObject *)=0
virtual bool in(OdRxObject *, OdTfFiler *)=0
virtual void out(OdRxObject *, OdTfFiler *)=0
virtual OdString schema(OdRxObject *)=0
ODRX_DECLARE_MEMBERS(OdTfObjectPE)