CFx SDK Documentation 2024 SP0
|
#include <GsFiler.h>
Classes | |
struct | SubstitutionActuator |
struct | Substitutor |
Public Types | |
enum | Section { kEOFSection = -1 , kHeaderSection = 0 , kDatabaseLinkSection , kGsModuleSection , kDeviceSection , kClientDeviceSection , kViewSection , kClientViewSection , kModelSection , kClientModelSection , kNodeSection , kClientNodeSection , kMetafileSection , kClientMetafileSection , kClientMaterialSection , kBlockRefImplSection , kLinkedDeviceSection , kRenditionSection , kRuntimeChangesSection } |
enum | Version { kV1 = 100 , kV2 = 200 , kVLast = kV2 } |
Public Member Functions | |
ODRX_DECLARE_MEMBERS (OdGsFiler) | |
OdGsFiler () | |
virtual | ~OdGsFiler () |
virtual bool | setStream (OdStreamBuf *pStream, bool bWrite=false)=0 |
virtual OdStreamBufPtr | getStream () const =0 |
virtual void | setDatabase (const OdDbBaseDatabase *pDb)=0 |
virtual OdDbBaseDatabase * | getDatabase () const =0 |
virtual void | setVersion (OdUInt32 nVersion)=0 |
virtual OdUInt32 | version () const =0 |
virtual void | wrDbHash (const OdDbBaseDatabase *pDb)=0 |
virtual bool | checkDbHash (const OdDbBaseDatabase *pDb)=0 |
virtual void | setWriteSections (OdUInt64 nSections)=0 |
virtual void | setWriteSection (Section section, bool bSet)=0 |
virtual bool | isWriteSection (Section section) const =0 |
virtual void | setReadSections (OdUInt64 nSections)=0 |
virtual void | setReadSection (Section section, bool bSet)=0 |
virtual bool | isReadSection (Section section) const =0 |
virtual void | wrSectionBegin (Section section)=0 |
virtual void | wrSectionEnd (Section section)=0 |
virtual void | wrEOFSection ()=0 |
virtual Section | rdSection () const =0 |
virtual Section | curSection () const =0 |
virtual void | skipSection () const =0 |
virtual void | rdBackSection () const =0 |
virtual bool | checkEOF () const =0 |
virtual Substitutor * | subst () const =0 |
virtual void | makeSubstitutions (bool bClear=true) const =0 |
virtual OdRxObjectPtr | getSubstitutor () const =0 |
virtual void | setSubstitutor (OdRxObject *pSubst)=0 |
virtual void | setArbitraryData (const OdChar *pName, OdRxObject *pObject)=0 |
virtual OdRxObjectPtr | getArbitraryData (const OdChar *pName) const =0 |
virtual bool | hasArbitraryData (const OdChar *pName) const =0 |
virtual void | clearArbitraryData ()=0 |
virtual void | registerPtr (const void *pPtr)=0 |
virtual void | unregisterPtr (const void *pPtr)=0 |
virtual bool | isPtrRegistered (const void *pPtr) const =0 |
virtual void | clearRegisteredPtrs ()=0 |
virtual void | wrHandle (OdDbStub *pHandle)=0 |
virtual OdDbStub * | rdHandle () const =0 |
virtual void | wrClass (OdRxObject *pObj)=0 |
virtual OdRxObjectPtr | rdClass () const =0 |
virtual void | wrRawData (const void *pData, OdUInt32 nDataSize)=0 |
virtual void | rdRawData (void *pData, OdUInt32 nDataSize) const =0 |
virtual void | wrBool (bool bVal) |
virtual bool | rdBool () const |
virtual void | wrInt (int val) |
virtual int | rdInt () const |
virtual void | wrUInt (unsigned int val) |
virtual unsigned int | rdUInt () const |
virtual void | wrChar (char val) |
virtual char | rdChar () const |
virtual void | wrUInt8 (OdUInt8 val) |
virtual OdUInt8 | rdUInt8 () const |
virtual void | wrInt16 (OdInt16 val) |
virtual OdInt16 | rdInt16 () const |
virtual void | wrUInt16 (OdUInt16 val) |
virtual OdUInt16 | rdUInt16 () const |
virtual void | wrInt32 (OdInt32 val) |
virtual OdInt32 | rdInt32 () const |
virtual void | wrUInt32 (OdUInt32 val) |
virtual OdUInt32 | rdUInt32 () const |
virtual void | wrInt64 (OdInt64 val) |
virtual OdInt64 | rdInt64 () const |
virtual void | wrUInt64 (OdUInt64 val) |
virtual OdUInt64 | rdUInt64 () const |
virtual void | wrIntPtr (OdIntPtr val) |
virtual OdIntPtr | rdIntPtr () const |
void | wrPtr (const void *pPtr) |
void * | rdPtr () const |
virtual void | wrCOLORREF (ODCOLORREF val) |
virtual ODCOLORREF | rdCOLORREF () const |
virtual void | wrFloat (float val) |
virtual float | rdFloat () const |
virtual void | wrDouble (double val) |
virtual double | rdDouble () const |
virtual void | wrPoint2d (const OdGePoint2d &pt) |
virtual void | rdPoint2d (OdGePoint2d &pt) const |
virtual void | wrVector2d (const OdGeVector2d &vec) |
virtual void | rdVector2d (OdGeVector2d &vec) const |
virtual void | wrPoint3d (const OdGePoint3d &pt) |
virtual void | rdPoint3d (OdGePoint3d &pt) const |
virtual void | wrVector3d (const OdGeVector3d &vec) |
virtual void | rdVector3d (OdGeVector3d &vec) const |
virtual void | wrMatrix3d (const OdGeMatrix3d &mat) |
virtual void | rdMatrix3d (OdGeMatrix3d &mat) const |
virtual void | wrExtents3d (const OdGeExtents3d &ext) |
virtual void | rdExtents3d (OdGeExtents3d &ext) const |
virtual void | wrAnsiString (const OdAnsiString &str) |
virtual void | rdAnsiString (OdAnsiString &str) const |
OdAnsiString | rdAnsiStringRet () const |
virtual void | wrString (const OdString &str) |
virtual void | rdString (OdString &str) const |
OdString | rdStringRet () const |
virtual void | wrUInt8Array (const OdUInt8Array &arr) |
virtual void | wrUInt16Array (const OdUInt16Array &arr) |
virtual void | wrUInt16Array (OdUInt32 count, const OdUInt16 *arr) |
virtual void | wrUInt32Array (const OdUInt32Array &arr) |
virtual void | wrUInt32Array (const OdUInt32Vector &arr) |
virtual void | wrUInt64Array (const OdUInt64Array &arr) |
virtual void | wrUInt64Array (const OdUInt64Vector &vec) |
virtual void | wrUInt64Array (OdUInt32 count, const OdUInt64 *arr) |
virtual void | wrIntArray (const OdIntArray &arr) |
virtual void | wrFloatArray (const OdFloatArray &arr) |
virtual void | wrFloatArray (OdUInt32 count, const float *arr) |
virtual void | wrPoint2dArray (const OdGePoint2dArray &arr) |
virtual void | wrPoint3dArray (const OdGePoint3dArray &arr) |
virtual void | wrDbStubPtrArray (const OdDbStubPtrArray &arr) |
virtual void | wrGsDCRect (const OdGsDCRect &rc) |
virtual void | wrGsDCRectDouble (const OdGsDCRectDouble &rcd) |
virtual void | rdUInt8Array (OdUInt8Array &arr) |
virtual void | rdUInt16Array (OdUInt16Array &arr) |
virtual void | rdUInt16Array (OdUInt32 count, OdUInt16 *arr) |
virtual void | rdUInt32Array (OdUInt32Array &arr) |
virtual void | rdUInt32Array (OdUInt32Vector &arr) |
virtual void | rdUInt64Array (OdUInt64Array &arr) |
virtual void | rdUInt64Array (OdUInt64Vector &vec) |
virtual void | rdUInt64Array (OdUInt32 count, OdUInt64 *arr) |
virtual void | rdIntArray (OdIntArray &arr) |
virtual void | rdFloatArray (OdFloatArray &arr) |
virtual void | rdFloatArray (OdUInt32 count, float *arr) |
virtual void | rdPoint2dArray (OdGePoint2dArray &arr) |
virtual void | rdPoint3dArray (OdGePoint3dArray &arr) |
virtual void | rdDbStubPtrArray (OdDbStubPtrArray &arr) |
virtual void | rdGsDCRect (OdGsDCRect &dcrc) |
virtual void | rdGsDCRectDouble (OdGsDCRectDouble &dcrcd) |
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 |
Static Public Member Functions | |
static OdSmartPtr< OdGsFiler > | createObject (OdStreamBuf *pStream, bool bForWrite, const OdDbBaseDatabase *pDb, OdUInt32 nVersion=kVLast) |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
enum OdGsFiler::Section |
Represents a file section.
enum OdGsFiler::Version |
|
inline |
|
inlinevirtual |
|
pure virtual |
Implemented in OdGsFilerV100Impl.
|
pure virtual |
Checks whether currently read section is the end of file (EOF) section.
Implemented in OdGsFilerV100Impl.
|
pure virtual |
Implemented in OdGsFilerV100Impl.
|
pure virtual |
Implemented in OdGsFilerV100Impl.
|
static |
Creates a filer object and returns a smart pointer to it.
pStream | [in] Pointer to a stream buffer. |
bForWrite | [in] Flag that specifies whether to open filer for write operations. |
pDb | [in] Pointer to a database. |
nVersion | [in] File version. |
|
pure virtual |
Retrieves the current section.
Implemented in OdGsFilerV100Impl.
|
pure virtual |
Implemented in OdGsFilerV100Impl.
|
pure virtual |
Retrieves a pointer to a database that is used for this stream.
Implemented in OdGsFilerV100Impl.
|
pure virtual |
Retrieves a smart pointer to current stream.
Implemented in OdGsFilerV100Impl.
|
pure virtual |
Implemented in OdGsFilerV100Impl.
|
pure virtual |
Implemented in OdGsFilerV100Impl.
|
pure virtual |
Implemented in OdGsFilerV100Impl.
|
pure virtual |
Checks whether the specified section is opened for read operations.
section | [in] Section to check. |
Implemented in OdGsFilerV100Impl.
|
pure virtual |
Checks whether the specified section is opened for write operations.
section | [in] Section to check. |
Implemented in OdGsFilerV100Impl.
Implemented in OdGsFilerV100Impl.
OdGsFiler::ODRX_DECLARE_MEMBERS | ( | OdGsFiler | ) |
|
virtual |
Reads data of OdAnsiString type from the stream.
str | [out] Receives ANSI string. |
|
inline |
|
pure virtual |
Implemented in OdGsFilerV100Impl.
|
virtual |
Reads data of bool type from the stream.
|
virtual |
Reads data of char type from the stream.
|
pure virtual |
Retrieves a smart pointer to a class at current stream position.
Implemented in OdGsFilerV100Impl.
|
virtual |
Reads the color data defined by the ODCOLORREF macro. Length of the read data equals to OdUInt32 data type length.
|
virtual |
Reads an array of pointers to database-resident objects from the stream.
arr | [out] Receives an array of pointers to database-resident objects. |
|
virtual |
Reads data of double type from the stream.
|
virtual |
Reads data of OdGeExtents3d type from the stream.
ext | [out] Receives 3D extents. |
|
virtual |
Reads data of float type from the stream.
|
virtual |
Reads an array of float values from the stream.
arr | [out] Receives an array of float values. |
Reads an array of float values from the stream.
count | [in] Count of elements in the array. |
arr | [out] Receives an array of float values. |
|
virtual |
Reads an array of 2D device rectangles from the stream.
arr | [out] Receives an array of 2D device rectangles. |
|
virtual |
Reads an array of 2D device rectangles (with coordinates represented by values of the double type) from the stream.
arr | [out] Receives an array of 2D device rectangles (with coordinates represented by values of the double type). |
|
pure virtual |
Retrieves a pointer to database handle.
Implemented in OdGsFilerV100Impl.
|
virtual |
Reads data of int type from the stream.
|
virtual |
Reads data of OdInt16 type (int 16 bits) from the stream.
|
virtual |
Reads data of OdInt32 type (int 32 bits) from the stream.
|
virtual |
|
virtual |
Reads an array of integer values from the stream.
arr | [out] Receives an array of integer values. |
|
virtual |
Reads data of rdIntPtr type (integer that is able to store a pointer (32 or 64 depending on platform)) from the stream.
|
virtual |
Reads data of OdGeMatrix3d type from the stream.
mat | [out] Receives 3D transformation matrix. |
|
virtual |
Reads data of OdGePoint2d type from the stream.
pt | [out] Receives 2D point. |
|
virtual |
Reads an array of 2D points from the stream.
arr | [out] Receives an array of 2D points. |
|
virtual |
Reads data of OdGePoint3d type from the stream.
pt | [out] Receives 3D point. |
|
virtual |
Reads an array of 3D points from the stream.
arr | [out] Receives an array of 3D points. |
|
inline |
Reads raw data from the stream.
pData | [out] Pointer to data (in bytes). |
nDataSize | [in] Data size. |
Implemented in OdGsFilerV100Impl.
|
pure virtual |
Reads sections one by one and returns a current section for which read access is not enabled or the EOF section.
Implemented in OdGsFilerV100Impl.
Reads data of OdString type (string) from the stream.
str | [out] Receives a string. |
|
inline |
|
virtual |
Reads data of unsigned int type from the stream.
|
virtual |
Reads data of OdUInt16 type (unsigned int 16 bits) from the stream.
|
virtual |
Reads an array of OdUInt16 values (unsigned int 16 bits) from the stream.
arr | [out] Receives an array of OdUInt16 values. |
Reads an array of OdUInt16 values (unsigned int 16 bits) from the stream.
count | [in] Count of elements in the array. |
arr | [out] Receives an array of OdUInt16 values. |
|
virtual |
Reads data of OdUInt32 type (unsigned int 32 bits) from the stream.
|
virtual |
Reads an array of OdUInt32 values (unsigned int 32 bits) from the stream.
arr | [out] Receives an array of OdUInt32 values. |
|
virtual |
Reads a vector of OdUInt32 values (unsigned int 32 bits) from the stream.
arr | [out] Receives a vector of OdUInt32 values. |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Reads data of OdUInt8 type (unsigned int 8 bits) from the stream.
|
virtual |
Reads an array of OdUInt8 values (unsigned int 8 bits) from the stream.
arr | [out] Receives an array of OdUInt8 values. |
|
virtual |
Reads data of OdGeVector2d type from the stream.
vec | [out] Receives 2D vector. |
|
virtual |
Reads data of OdGeVector3d type from the stream.
vec | [out] Receives 3D vector. |
Implemented in OdGsFilerV100Impl.
|
pure virtual |
Implemented in OdGsFilerV100Impl.
|
pure virtual |
Sets a specified database.
pDb | [in] Pointer to a database to set. |
Implemented in OdGsFilerV100Impl.
Sets the specified section for read operations.
section | [in] Section to set. |
bSet | [in] Flag that specifies whether to read the section. |
Implemented in OdGsFilerV100Impl.
Sets sections for read operations.
nSections | [in] Sections to set for reading. |
Implemented in OdGsFilerV100Impl.
|
pure virtual |
Attaches a specified stream and opens it for read and potentially write operations.
pStream | [in] Pointer to a stream to set. |
bWrite | [in] Flag that specifies whether to open stream for write operations. |
Implemented in OdGsFilerV100Impl.
|
pure virtual |
Implemented in OdGsFilerV100Impl.
Sets a file version for this filer.
nVersion | [in] File version. See Version enum. |
Implemented in OdGsFilerV100Impl.
Sets the specified section for write operations.
section | [in] Section to set. |
bSet | [in] Flag that specifies whether to write to the section. |
Implemented in OdGsFilerV100Impl.
Sets sections for write operations.
nSections | [in] Sections to set for writing. |
Implemented in OdGsFilerV100Impl.
|
pure virtual |
Skips the current section and makes the following section current.
Implemented in OdGsFilerV100Impl.
|
pure virtual |
Implemented in OdGsFilerV100Impl.
Implemented in OdGsFilerV100Impl.
|
pure virtual |
Retrieves a file version for this filer.
Implemented in OdGsFilerV100Impl.
|
virtual |
Writes data of OdAnsiString type (ANSI string) to the stream.
str | [in] Data to write. |
|
virtual |
Writes data of bool type to the stream.
bVal | [in] Data to write. |
|
virtual |
Writes data of char type to the stream.
val | [in] Data to write. |
|
pure virtual |
Writes a name of the class associated with passed object to the stream.
pObj | [in] Pointer to database handle. |
Implemented in OdGsFilerV100Impl.
|
virtual |
Writes color value defined by the ODCOLORREF macro.
val | [in] Value to write. |
|
pure virtual |
Implemented in OdGsFilerV100Impl.
|
virtual |
Writes an array of pointers to database-resident objects to the stream.
arr | [in] Array to write. |
|
virtual |
Writes data of double type to the stream.
val | [in] Data to write. |
|
pure virtual |
Writes the end of file (EOF) section.
Implemented in OdGsFilerV100Impl.
|
virtual |
Writes data of OdGeExtents3d type (3-dimensional extents) to the stream.
ext | [in] Data to write. |
|
virtual |
Writes data of float type to the stream.
val | [in] Data to write. |
|
virtual |
Writes an array of float values to the stream.
arr | [in] Array to write. |
Writes an array of float values to the stream.
count | [in] Count of elements in the array. |
arr | [in] Array to write. |
|
virtual |
Writes an array of 2D device rectangles to the stream.
rc | [in] Array to write. |
|
virtual |
Writes an array of 2D device rectangles (with coordinates represented by values of the double type) to the stream.
rcd | [in] Array to write. |
|
pure virtual |
Writes database handle to the stream.
pHandle | [in] Pointer to database handle. |
Implemented in OdGsFilerV100Impl.
|
virtual |
Writes data of int type to the stream.
val | [in] Data to write. |
Writes data of OdInt16 type (int 16 bits) to the stream.
val | [in] Data to write. |
Writes data of OdInt32 type (int 32 bits) to the stream.
val | [in] Data to write. |
|
virtual |
Writes an array of integer values to the stream.
arr | [in] Array to write. |
Writes data of OdIntPtr type (integer that is able to store a pointer (32 or 64 depending on platform)) to the stream.
val | [in] Data to write. |
|
virtual |
Writes data of OdGeMatrix3d type (3-dimensional transformation matrix) to the stream.
mat | [in] Data to write. |
|
virtual |
Writes data of OdGePoint2d type (2-dimensional point) to the stream.
pt | [in] Data to write. |
|
virtual |
Writes an array of 2D points to the stream.
arr | [in] Array to write. |
|
virtual |
Writes data of OdGePoint3d type (3-dimensional point) to the stream.
pt | [in] Data to write. |
|
virtual |
Writes an array of 3D points to the stream.
arr | [in] Array to write. |
Writes raw data to the stream.
pData | [in] Pointer to data (in bytes). |
nDataSize | [in] Data size. |
Implemented in OdGsFilerV100Impl.
Begins writing to the section.
section | [in] File section. |
Implemented in OdGsFilerV100Impl.
Writes data of OdString type (string) to the stream.
str | [in] Data to write. |
|
virtual |
Writes data of unsigned int type to the stream.
val | [in] Data to write. |
Writes data of OdUInt16 type (unsigned int 16 bits) to the stream.
val | [in] Data to write. |
|
virtual |
Writes an array of OdUInt16 values (unsigned int 16 bits) to the stream.
arr | [in] Array to write. |
Writes an array of OdUInt16 values (unsigned int 16 bits) to the stream.
count | [in] Count of elements in the array. |
arr | [in] Array to write. |
Writes data of OdUInt32 type (unsigned int 32 bits) to the stream.
val | [in] Data to write. |
|
virtual |
Writes an array of OdUInt32 values (unsigned int 32 bits) to the stream.
arr | [in] Array to write. |
|
virtual |
Writes a vector of OdUInt32 values (unsigned int 32 bits) to the stream.
arr | [in] Vector to write. |
Writes data of OdUInt64 type (unsigned int 64 bits) to the stream.
val | [in] Data to write. |
|
virtual |
Writes an array of OdUInt64 values (unsigned int 64 bits) to the stream.
arr | [in] Array to write. |
|
virtual |
Writes a vector of OdUInt64 values (unsigned int 64 bits) to the stream.
vec | [in] Vector to write. |
Writes an array of OdUInt64 values (unsigned int 16 bits) to the stream.
count | [in] Count of elements in the array. |
arr | [in] Array to write. |
Writes data of OdUInt8 type (unsigned int 8 bits) to the stream.
val | [in] Data to write. |
|
virtual |
Writes an array of OdUInt8 values (unsigned int 8 bits) to the stream.
arr | [in] Array to write. |
|
virtual |
Writes data of OdGeVector2d type (2-dimensional vector) to the stream.
vec | [in] Data to write. |
|
virtual |
Writes data of OdGeVector3d type (3-dimensional vector) to the stream.
vec | [in] Data to write. |