CFx SDK Documentation 2024 SP0
|
#include <DbFiler.h>
Public Types | |
enum | { kDfltPrec = -1 , kMaxPrec = DBL_DIG + 1 } |
Public Types inherited from OdDbFiler | |
enum | FilerType { kFileFiler = 0 , kCopyFiler = 1 , kUndoFiler = 2 , kBagFiler = 3 , kIdXlateFiler = 4 , kPageFiler = 5 , kDeepCloneFiler = 6 , kIdFiler = 7 , kPurgeFiler = 8 , kWblockCloneFiler = 9 } |
Public Member Functions | |
ODRX_DECLARE_MEMBERS (OdDbDxfFiler) | |
OdDbDxfFiler () | |
virtual void | seek (OdInt64 offset, OdDb::FilerSeekType seekType) |
virtual OdUInt64 | tell () const |
virtual int | precision () const |
virtual void | setPrecision (int decimalDigits) |
virtual void | writeXDataStart () |
virtual bool | includesDefaultValues () const |
virtual bool | atEOF () |
virtual bool | atEndOfObject () |
virtual bool | atExtendedData () |
virtual bool | atSubclassData (const OdString &subClassName) |
virtual bool | atEmbeddedObjectStart () |
virtual int | nextItem () |
virtual OdResBufPtr | nextRb () |
virtual void | writeRb (const OdResBuf *pRb) |
virtual void | pushBackItem () |
OdString | rdString () |
virtual void | rdString (OdString &value)=0 |
virtual bool | rdBool ()=0 |
virtual OdInt8 | rdInt8 ()=0 |
virtual OdInt16 | rdInt16 ()=0 |
virtual OdInt32 | rdInt32 ()=0 |
virtual OdInt64 | rdInt64 ()=0 |
virtual OdUInt8 | rdUInt8 ()=0 |
virtual OdUInt16 | rdUInt16 ()=0 |
virtual OdUInt32 | rdUInt32 ()=0 |
virtual OdUInt64 | rdUInt64 ()=0 |
virtual OdDbHandle | rdHandle ()=0 |
virtual OdDbObjectId | rdObjectId ()=0 |
virtual double | rdAngle ()=0 |
virtual double | rdDouble ()=0 |
virtual void | rdPoint2d (OdGePoint2d &value)=0 |
virtual void | rdPoint3d (OdGePoint3d &value)=0 |
virtual void | rdVector2d (OdGeVector2d &value)=0 |
virtual void | rdVector3d (OdGeVector3d &value)=0 |
virtual void | rdScale3d (OdGeScale3d &value)=0 |
virtual void | rdBinaryChunk (OdBinaryData &value)=0 |
virtual void | copyItem (OdDbDxfFiler *pSource) |
virtual void | wrName (int groupCode, const OdString &value)=0 |
virtual void | wrString (int groupCode, const OdString &value)=0 |
void | wrStringOpt (int groupCode, const OdString &value) |
void | wrSubclassMarker (const OdString &value) |
void | wrEmbeddedObjectStart () |
virtual void | wrBool (int groupCode, bool value)=0 |
void | wrBoolOpt (int groupCode, bool value, bool defaultValue) |
virtual void | wrInt8 (int groupCode, OdInt8 value)=0 |
void | wrInt8Opt (int groupCode, OdInt8 value, OdInt8 defaultValue) |
virtual void | wrUInt8 (int groupCode, OdUInt8 value)=0 |
void | wrUInt8Opt (int groupCode, OdUInt8 value, OdUInt8 defaultValue) |
virtual void | wrInt16 (int groupCode, OdInt16 value)=0 |
void | wrInt16Opt (int groupCode, OdInt16 value, OdInt16 defaultValue) |
virtual void | wrUInt16 (int groupCode, OdUInt16 value)=0 |
void | wrUInt16Opt (int groupCode, OdUInt16 value, OdUInt16 defaultValue) |
virtual void | wrInt32 (int groupCode, OdInt32 value)=0 |
void | wrInt32Opt (int groupCode, OdInt32 value, OdInt32 defaultValue) |
virtual void | wrUInt32 (int groupCode, OdUInt32 value)=0 |
void | wrUInt32Opt (int groupCode, OdUInt32 value, OdUInt32 defaultValue) |
virtual void | wrInt64 (int groupCode, OdInt64 value)=0 |
void | wrInt64Opt (int groupCode, OdInt64 value, OdInt64 defaultValue) |
virtual void | wrUInt64 (int groupCode, OdUInt64 value)=0 |
void | wrUInt64Opt (int groupCode, OdUInt64 value, OdUInt64 defaultValue) |
virtual void | wrHandle (int groupCode, OdDbHandle value)=0 |
virtual void | wrObjectId (int groupCode, OdDbObjectId value)=0 |
void | wrObjectIdOpt (int groupCode, OdDbObjectId value) |
virtual void | wrAngle (int groupCode, double value, int precision=kDfltPrec)=0 |
void | wrAngleOpt (int groupCode, double value, double defaultValue=0., int precision=kDfltPrec) |
virtual void | wrDouble (int groupCode, double value, int precision=kDfltPrec)=0 |
void | wrDoubleOpt (int groupCode, double value, double defaultValue=0., int precision=kDfltPrec) |
virtual void | wrPoint2d (int groupCode, const OdGePoint2d &value, int precision=kDfltPrec)=0 |
void | wrPoint2dOpt (int groupCode, const OdGePoint2d &value, const OdGePoint2d &defaultValue, int precision=kDfltPrec) |
virtual void | wrPoint3d (int groupCode, const OdGePoint3d &value, int precision=kDfltPrec)=0 |
void | wrPoint3dOpt (int groupCode, const OdGePoint3d &value, const OdGePoint3d &defaultValue, int precision=kDfltPrec) |
virtual void | wrVector2d (int groupCode, const OdGeVector2d &value, int precision=kDfltPrec)=0 |
void | wrVector2dOpt (int groupCode, const OdGeVector2d &value, const OdGeVector2d &defaultValue, int precision=kDfltPrec) |
virtual void | wrVector3d (int groupCode, const OdGeVector3d &value, int precision=kDfltPrec)=0 |
void | wrVector3dOpt (int groupCode, const OdGeVector3d &value, const OdGeVector3d &defaultValue, int precision=kDfltPrec) |
virtual void | wrScale3d (int groupCode, const OdGeScale3d &value, int precision=kDfltPrec)=0 |
virtual void | wrBinaryChunk (int groupCode, const OdUInt8 *buffer, OdUInt32 numBytes)=0 |
void | wrBinaryChunk (int groupCode, const OdBinaryData &value) |
Public Member Functions inherited from OdDbFiler | |
OdDbFiler () | |
ODRX_DECLARE_MEMBERS (OdDbFiler) | |
virtual OdResult | filerStatus () const |
virtual void | resetFilerStatus () |
virtual FilerType | filerType () const =0 |
virtual OdDbDatabase * | database () const |
virtual OdDb::DwgVersion | dwgVersion (OdDb::MaintReleaseVer *pMaintReleaseVer=0) const |
OdDbAuditInfo * | getAuditInfo () const |
virtual void | setController (OdDbFilerController *pFilerController) |
virtual OdDbFilerController * | controller () const |
Public Member Functions inherited from OdRxObject | |
ODRX_HEAP_OPERATORS () | |
OdRxObject () | |
virtual | ~OdRxObject () |
virtual OdRxObject * | queryX (const OdRxClass *pClass) const |
virtual OdRxObject * | x (const OdRxClass *pClass) const |
virtual OdRxClass * | isA () const |
virtual void | addRef ()=0 |
virtual void | release ()=0 |
virtual long | numRefs () const |
bool | isKindOf (const OdRxClass *pClass) const |
virtual OdRxObjectPtr | clone () const |
virtual void | copyFrom (const OdRxObject *pSource) |
virtual OdRx::Ordering | comparedTo (const OdRxObject *pOther) const |
virtual bool | isEqualTo (const OdRxObject *pOther) const |
Additional Inherited Members | |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
This class is the abstract base class for classes that are used for file I/O operations with DXF formats.
Corresponding C++ library: TD_Db
<group OdDb_Classes>
anonymous enum |
|
virtual |
Returns true if and only if this Filer object is at start of an embedded object.
|
virtual |
Returns true if and only if this Filer object is at the end of an object's data.
The start of another object's data. The end of a file.
|
virtual |
Returns true if and only if this Filer object is at the end of an object's data.
A subclass data marker. The start of an object's xdata. The start of embedded object's data. The start of another object's data. The end of a file.
|
virtual |
Returns true if and only if this Filer object is at the start of an object's xdata.
|
virtual |
Returns true if and only if this Filer object is at a subclass data marker with the specified subClassName.
subClassName | [in] Subclass name. |
|
virtual |
Copies the current item from the specified Filer object to this one.
pSource | [in] Pointer to the source Filer. |
|
virtual |
Returns true if and only if default values are normally written to the file associated with this Filer object.
|
virtual |
Reads the next item of this Filer object, and returns its group code.
|
virtual |
Reads the next item of this Filer object, and returns a SmartPointer to its ResBuf.
OdDbDxfFiler::ODRX_DECLARE_MEMBERS | ( | OdDbDxfFiler | ) |
|
virtual |
Returns the number of decimal places for DxfOut filing with this Filer object.
|
virtual |
Resets this Filer object to where it was before the last item was read.
|
pure virtual |
Returns the angle value of the current item of this Filer object.
|
pure virtual |
Returns the BinaryData value of the current item of this Filer object.
value | [out] Receives the value. |
|
pure virtual |
Returns the bool value of the current item of this Filer object.
|
pure virtual |
Returns the double value of the current item of this Filer object.
|
pure virtual |
Returns the handle value of the current item of this Filer object.
|
pure virtual |
Returns the Int16 value of the current item of this Filer object.
|
pure virtual |
Returns the Int32 value of the current item of this Filer object.
|
pure virtual |
Returns the Int64 value of the current item of this Filer object.
|
pure virtual |
Returns the Int8 value of the current item of this Filer object.
|
pure virtual |
Returns the Object ID value of the current item of this Filer object.
|
pure virtual |
Returns the 2D point value of the current item of this Filer object.
value | [out] Receives the value. |
|
pure virtual |
Returns the 3D point value of the current item of this Filer object.
value | [out] Receives the value. |
|
pure virtual |
Returns the scale value of the current item of this Filer object.
value | [out] Receives the value. |
OdString OdDbDxfFiler::rdString | ( | ) |
Returns the string value of the current item of this Filer object.
value | [out] Receives the value. |
|
pure virtual |
Returns the UInt16 value of the current item of this Filer object.
|
pure virtual |
Returns the UInt32 value of the current item of this Filer object.
|
pure virtual |
Returns the UInt64 value of the current item of this Filer object.
|
pure virtual |
Returns the UInt8 value of the current item of this Filer object.
|
pure virtual |
Returns the 2D vector value of the current item of this Filer object.
value | [out] Receives the value. |
|
pure virtual |
Returns the 3D vector value of the current item of this Filer object.
value | [out] Receives the value. |
|
virtual |
Moves the I/O pointer to the specified location in this Filer object.
offset | [in] Number of bytes. |
seekType | [in] Seek type. |
Value Description. OdDb::kSeekFromStart SEEK_SET Start of file. OdDb::kSeekFromCurrent SEEK_CUR Current position of I/O pointer. OdDb::kSeekFromEnd SEEK_END End of file.
|
virtual |
Sets the number of decimal places DxfOut filing with this Filer object.
precision | [in] Decimal places. |
|
virtual |
Returns the current I/O pointer position of this Filer object.
|
pure virtual |
Writes the specified angle value to this Filer object.
groupCode | [in] Group code. |
value | [in] Value. |
precision | [in] Decimal places. |
void OdDbDxfFiler::wrAngleOpt | ( | int | groupCode, |
double | value, | ||
double | defaultValue = 0. , |
||
int | precision = kDfltPrec |
||
) |
Writes the specified optional angle value to this Filer object.
groupCode | [in] Group code. |
value | [in] Value. |
defaultValue | [in] Default value. |
precision | [in] Decimal places. |
void OdDbDxfFiler::wrBinaryChunk | ( | int | groupCode, |
const OdBinaryData & | value | ||
) |
Writes the specified BinaryChunk value to this Filer object.
groupCode | [in] Group code. |
value | [in] Value. |
|
pure virtual |
Writes the specified BinaryChunk value to this Filer object.
groupCode | [in] Group code. |
numBytes | [in] Number of bytes. |
buffer | [in] Array of bytes. |
|
pure virtual |
Writes the specified bool value to this Filer object.
groupCode | [in] Group code. |
value | [in] Value. |
void OdDbDxfFiler::wrBoolOpt | ( | int | groupCode, |
bool | value, | ||
bool | defaultValue | ||
) |
Writes the specified optional bool value to this Filer object.
groupCode | [in] Group code. |
value | [in] Value. |
defaultValue | [in] Default value. |
|
pure virtual |
Writes the specified double value to this Filer object.
groupCode | [in] Group code. |
value | [in] Value. |
precision | [in] Decimal places. |
void OdDbDxfFiler::wrDoubleOpt | ( | int | groupCode, |
double | value, | ||
double | defaultValue = 0. , |
||
int | precision = kDfltPrec |
||
) |
Writes the specified optional double value to this Filer object.
groupCode | [in] Group code. |
value | [in] Value. |
defaultValue | [in] Default value. |
precision | [in] Decimal places. |
void OdDbDxfFiler::wrEmbeddedObjectStart | ( | ) |
Writes the embedded object start marker to this Filer object.
|
pure virtual |
Writes the specified bool value to this Filer object.
groupCode | [in] Group code. |
value | [in] Value. |
Writes the specified Int16 value to this Filer object.
groupCode | [in] Group code. |
value | [in] Value. |
Writes the specified optional Int16 value to this Filer object.
groupCode | [in] Group code. |
value | [in] Value. |
defaultValue | [in] Default value. |
Writes the specified Int32 value to this Filer object.
groupCode | [in] Group code. |
value | [in] Value. |
Writes the specified optional Int32 value to this Filer object.
groupCode | [in] Group code. |
value | [in] Value. |
defaultValue | [in] Default value. |
Writes the specified Int64 value to this Filer object.
groupCode | [in] Group code. |
value | [in] Value. |
Writes the specified optional Int64 value to this Filer object.
groupCode | [in] Group code. |
value | [in] Value. |
defaultValue | [in] Default value. |
Writes the specified Int8 value to this Filer object.
groupCode | [in] Group code. |
value | [in] Value. |
Writes the specified optional Int8 value to this Filer object.
groupCode | [in] Group code. |
value | [in] Value. |
defaultValue | [in] Default value. |
Writes the specified ResBuf object to this Filer object.
pRb | [in] Pointer to the ResBuf object. |
|
virtual |
Indicates the start of xdata in this Filer object.
Writes the specified name value to this Filer object.
groupCode | [in] Group code. |
value | [in] Value. |
|
pure virtual |
Writes the specified Object ID value to this Filer object.
groupCode | [in] Group code. |
value | [in] Value. |
void OdDbDxfFiler::wrObjectIdOpt | ( | int | groupCode, |
OdDbObjectId | value | ||
) |
Writes the specified optional Object ID value to this Filer object.
groupCode | [in] Group code. |
value | [in] Value. |
defaultValue | [in] Default value. |
|
pure virtual |
Writes the specified 2D point value to this Filer object.
groupCode | [in] Group code. |
value | [in] Value. |
precision | [in] Decimal places. |
void OdDbDxfFiler::wrPoint2dOpt | ( | int | groupCode, |
const OdGePoint2d & | value, | ||
const OdGePoint2d & | defaultValue, | ||
int | precision = kDfltPrec |
||
) |
Writes the specified optional 2D point value to this Filer object.
groupCode | [in] Group code. |
value | [in] Value. |
defaultValue | [in] Default value. |
precision | [in] Decimal places. |
|
pure virtual |
Writes the specified 3D point value to this Filer object.
groupCode | [in] Group code. |
value | [in] Value. |
precision | [in] Decimal places. |
void OdDbDxfFiler::wrPoint3dOpt | ( | int | groupCode, |
const OdGePoint3d & | value, | ||
const OdGePoint3d & | defaultValue, | ||
int | precision = kDfltPrec |
||
) |
Writes the specified optional 3D point value to this Filer object.
groupCode | [in] Group code. |
value | [in] Value. |
defaultValue | [in] Default value. |
precision | [in] Decimal places. |
|
pure virtual |
Writes the specified 2D scale value to this Filer object.
groupCode | [in] Group code. |
value | [in] Value. |
precision | [in] Decimal places. |
Writes the specified string value to this Filer object.
groupCode | [in] Group code. |
value | [in] Value. |
Writes the specified optional string value to this Filer object.
groupCode | [in] Group code. |
value | [in] Value. |
Writes the specified subclass data marker to this Filer object.
value | [in] Value. |
Writes the specified UInt16 value to this Filer object.
groupCode | [in] Group code. |
value | [in] Value. |
Writes the specified optional UInt16 value to this Filer object.
groupCode | [in] Group code. |
value | [in] Value. |
defaultValue | [in] Default value. |
Writes the specified UInt32 value to this Filer object.
groupCode | [in] Group code. |
value | [in] Value. |
Writes the specified optional UInt32 value to this Filer object.
groupCode | [in] Group code. |
value | [in] Value. |
defaultValue | [in] Default value. |
Writes the specified UInt64 value to this Filer object.
groupCode | [in] Group code. |
value | [in] Value. |
Writes the specified optional UInt64 value to this Filer object.
groupCode | [in] Group code. |
value | [in] Value. |
defaultValue | [in] Default value. |
Writes the specified UInt8 value to this Filer object.
groupCode | [in] Group code. |
value | [in] Value. |
Writes the specified optional UInt8 value to this Filer object.
groupCode | [in] Group code. |
value | [in] Value. |
defaultValue | [in] Default value. |
|
pure virtual |
Writes the specified 2D vector value to this Filer object.
groupCode | [in] Group code. |
value | [in] Value. |
precision | [in] Decimal places. |
void OdDbDxfFiler::wrVector2dOpt | ( | int | groupCode, |
const OdGeVector2d & | value, | ||
const OdGeVector2d & | defaultValue, | ||
int | precision = kDfltPrec |
||
) |
Writes the specified optional 2D vector value to this Filer object.
groupCode | [in] Group code. |
value | [in] Value. |
defaultValue | [in] Default value. |
precision | [in] Decimal places. |
|
pure virtual |
Writes the specified 3D vector value to this Filer object.
groupCode | [in] Group code. |
value | [in] Value. |
precision | [in] Decimal places. |
void OdDbDxfFiler::wrVector3dOpt | ( | int | groupCode, |
const OdGeVector3d & | value, | ||
const OdGeVector3d & | defaultValue, | ||
int | precision = kDfltPrec |
||
) |
Writes the specified optional 3D vector value to this Filer object.
groupCode | [in] Group code. |
value | [in] Value. |
defaultValue | [in] Default value. |
precision | [in] Decimal places. |