CFx SDK Documentation  2020SP3
Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
OdGsFilerV100Impl Class Reference

#include <GsFilerV100Impl.h>

Inheritance diagram for OdGsFilerV100Impl:
OdGsFiler OdRxObject

Classes

struct  WrSectionData
 

Public Member Functions

 OdGsFilerV100Impl ()
 
 ~OdGsFilerV100Impl ()
 
OdUInt32 headerTestChunk () const
 
bool rdHeaderSection ()
 
void wrHeaderSection ()
 
virtual bool setStream (OdStreamBuf *pStream, bool bWrite=false)
 
virtual OdStreamBufPtr getStream () const
 
virtual void setDatabase (const OdDbBaseDatabase *pDb)
 
virtual OdDbBaseDatabasegetDatabase () const
 
virtual void setVersion (OdUInt32 nVersion)
 
virtual OdUInt32 version () const
 
virtual void wrDbHash (const OdDbBaseDatabase *pDb)
 
virtual bool checkDbHash (const OdDbBaseDatabase *pDb)
 
virtual void setWriteSections (OdUInt64 nSections)
 
virtual void setWriteSection (Section section, bool bSet)
 
virtual bool isWriteSection (Section section) const
 
virtual void setReadSections (OdUInt64 nSections)
 
virtual void setReadSection (Section section, bool bSet)
 
virtual bool isReadSection (Section section) const
 
virtual void wrSectionBegin (Section section)
 
virtual void wrSectionEnd (Section section)
 
virtual void wrEOFSection ()
 
virtual Section rdSection () const
 
virtual Section curSection () const
 
virtual void skipSection () const
 
virtual void rdBackSection () const
 
virtual bool checkEOF () const
 
virtual Substitutorsubst () const
 
virtual void makeSubstitutions (bool bClear=true) const
 
virtual OdRxObjectPtr getSubstitutor () const
 
virtual void setSubstitutor (OdRxObject *pSubst)
 
virtual void setArbitraryData (const OdChar *pName, OdRxObject *pObject)
 
virtual OdRxObjectPtr getArbitraryData (const OdChar *pName) const
 
virtual bool hasArbitraryData (const OdChar *pName) const
 
virtual void clearArbitraryData ()
 
virtual void registerPtr (const void *pPtr)
 
virtual void unregisterPtr (const void *pPtr)
 
virtual bool isPtrRegistered (const void *pPtr) const
 
virtual void clearRegisteredPtrs ()
 
virtual void wrHandle (OdDbStub *pHandle)
 
virtual OdDbStub * rdHandle () const
 
virtual void wrClass (OdRxObject *pObj)
 
virtual OdRxObjectPtr rdClass () const
 
virtual void wrRawData (const void *pData, OdUInt32 nDataSize)
 
virtual void rdRawData (void *pData, OdUInt32 nDataSize) const
 
- Public Member Functions inherited from OdGsFiler
 ODRX_DECLARE_MEMBERS (OdGsFiler)
 
 OdGsFiler ()
 
virtual ~OdGsFiler ()
 
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)
 
voidrdPtr () 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 OdRxObjectqueryX (const OdRxClass *pClass) const
 
virtual OdRxObjectx (const OdRxClass *pClass) const
 
virtual OdRxClassisA () 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
 

Protected Types

enum  Flags { kOpenedForWrite = (1 << 0), kLastFlag = kOpenedForWrite }
 
typedef std::map< OdString, OdRxObjectPtrArbDataMap
 
typedef std::set< const void * > RegPtrsSet
 

Protected Member Functions

bool isWriting () const
 
void setWriting (bool bSet)
 
void assertWr () const
 
void assertRd () const
 

Protected Attributes

OdStreamBufPtr m_pStream
 
OdGsFilerDbLinkerPtr m_pLinker
 
OdUInt64 m_nSectionsToWrite
 
OdUInt64 m_nSectionsToRead
 
OdUInt32 m_nFlags
 
OdUInt32 m_nVersion
 
Section m_nCurSection
 
OdUInt32 m_nCurSectionSize
 
OdStack< WrSectionDatam_sectionStack
 
OdSmartPtr< OdGsFiler_SubstitutorImplm_subst
 
ArbDataMap m_arbData
 
RegPtrsSet m_regPtrs
 

Additional Inherited Members

- Public Types inherited from OdGsFiler
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 }
 
- Static Public Member Functions inherited from OdGsFiler
static OdSmartPtr< OdGsFilercreateObject (OdStreamBuf *pStream, bool bForWrite, const OdDbBaseDatabase *pDb, OdUInt32 nVersion=kVLast)
 
- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 

Detailed Description

Definition at line 327 of file GsFilerV100Impl.h.

Member Typedef Documentation

◆ ArbDataMap

Definition at line 357 of file GsFilerV100Impl.h.

◆ RegPtrsSet

typedef std::set<const void *> OdGsFilerV100Impl::RegPtrsSet
protected

Definition at line 359 of file GsFilerV100Impl.h.

Member Enumeration Documentation

◆ Flags

enum OdGsFilerV100Impl::Flags
protected
Enumerator
kOpenedForWrite 
kLastFlag 

Definition at line 329 of file GsFilerV100Impl.h.

Constructor & Destructor Documentation

◆ OdGsFilerV100Impl()

OdGsFilerV100Impl::OdGsFilerV100Impl ( )
inline

Definition at line 368 of file GsFilerV100Impl.h.

◆ ~OdGsFilerV100Impl()

OdGsFilerV100Impl::~OdGsFilerV100Impl ( )
inline

Definition at line 378 of file GsFilerV100Impl.h.

Member Function Documentation

◆ assertRd()

void OdGsFilerV100Impl::assertRd ( ) const
inlineprotected

Definition at line 366 of file GsFilerV100Impl.h.

◆ assertWr()

void OdGsFilerV100Impl::assertWr ( ) const
inlineprotected

Definition at line 365 of file GsFilerV100Impl.h.

◆ checkDbHash()

virtual bool OdGsFilerV100Impl::checkDbHash ( const OdDbBaseDatabase pDb)
virtual

Implements OdGsFiler.

◆ checkEOF()

virtual bool OdGsFilerV100Impl::checkEOF ( ) const
virtual

Implements OdGsFiler.

◆ clearArbitraryData()

virtual void OdGsFilerV100Impl::clearArbitraryData ( )
virtual

Implements OdGsFiler.

◆ clearRegisteredPtrs()

virtual void OdGsFilerV100Impl::clearRegisteredPtrs ( )
virtual

Implements OdGsFiler.

◆ curSection()

virtual Section OdGsFilerV100Impl::curSection ( ) const
virtual

Implements OdGsFiler.

◆ getArbitraryData()

virtual OdRxObjectPtr OdGsFilerV100Impl::getArbitraryData ( const OdChar pName) const
virtual

Implements OdGsFiler.

◆ getDatabase()

virtual OdDbBaseDatabase* OdGsFilerV100Impl::getDatabase ( ) const
virtual

Implements OdGsFiler.

◆ getStream()

virtual OdStreamBufPtr OdGsFilerV100Impl::getStream ( ) const
virtual

Implements OdGsFiler.

◆ getSubstitutor()

virtual OdRxObjectPtr OdGsFilerV100Impl::getSubstitutor ( ) const
virtual

Implements OdGsFiler.

◆ hasArbitraryData()

virtual bool OdGsFilerV100Impl::hasArbitraryData ( const OdChar pName) const
virtual

Implements OdGsFiler.

◆ headerTestChunk()

OdUInt32 OdGsFilerV100Impl::headerTestChunk ( ) const

◆ isPtrRegistered()

virtual bool OdGsFilerV100Impl::isPtrRegistered ( const void pPtr) const
virtual

Implements OdGsFiler.

◆ isReadSection()

virtual bool OdGsFilerV100Impl::isReadSection ( Section  section) const
virtual

Implements OdGsFiler.

◆ isWriteSection()

virtual bool OdGsFilerV100Impl::isWriteSection ( Section  section) const
virtual

Implements OdGsFiler.

◆ isWriting()

bool OdGsFilerV100Impl::isWriting ( ) const
inlineprotected

Definition at line 362 of file GsFilerV100Impl.h.

◆ makeSubstitutions()

virtual void OdGsFilerV100Impl::makeSubstitutions ( bool  bClear = true) const
virtual

Implements OdGsFiler.

◆ rdBackSection()

virtual void OdGsFilerV100Impl::rdBackSection ( ) const
virtual

Implements OdGsFiler.

◆ rdClass()

virtual OdRxObjectPtr OdGsFilerV100Impl::rdClass ( ) const
virtual

Implements OdGsFiler.

◆ rdHandle()

virtual OdDbStub* OdGsFilerV100Impl::rdHandle ( ) const
virtual

Implements OdGsFiler.

◆ rdHeaderSection()

bool OdGsFilerV100Impl::rdHeaderSection ( )

◆ rdRawData()

virtual void OdGsFilerV100Impl::rdRawData ( void pData,
OdUInt32  nDataSize 
) const
virtual

Implements OdGsFiler.

◆ rdSection()

virtual Section OdGsFilerV100Impl::rdSection ( ) const
virtual

Implements OdGsFiler.

◆ registerPtr()

virtual void OdGsFilerV100Impl::registerPtr ( const void pPtr)
virtual

Implements OdGsFiler.

◆ setArbitraryData()

virtual void OdGsFilerV100Impl::setArbitraryData ( const OdChar pName,
OdRxObject pObject 
)
virtual

Implements OdGsFiler.

◆ setDatabase()

virtual void OdGsFilerV100Impl::setDatabase ( const OdDbBaseDatabase pDb)
virtual

Implements OdGsFiler.

◆ setReadSection()

virtual void OdGsFilerV100Impl::setReadSection ( Section  section,
bool  bSet 
)
virtual

Implements OdGsFiler.

◆ setReadSections()

virtual void OdGsFilerV100Impl::setReadSections ( OdUInt64  nSections)
virtual

Implements OdGsFiler.

◆ setStream()

virtual bool OdGsFilerV100Impl::setStream ( OdStreamBuf pStream,
bool  bWrite = false 
)
virtual

Implements OdGsFiler.

◆ setSubstitutor()

virtual void OdGsFilerV100Impl::setSubstitutor ( OdRxObject pSubst)
virtual

Implements OdGsFiler.

◆ setVersion()

virtual void OdGsFilerV100Impl::setVersion ( OdUInt32  nVersion)
virtual

Implements OdGsFiler.

◆ setWriteSection()

virtual void OdGsFilerV100Impl::setWriteSection ( Section  section,
bool  bSet 
)
virtual

Implements OdGsFiler.

◆ setWriteSections()

virtual void OdGsFilerV100Impl::setWriteSections ( OdUInt64  nSections)
virtual

Implements OdGsFiler.

◆ setWriting()

void OdGsFilerV100Impl::setWriting ( bool  bSet)
inlineprotected

Definition at line 363 of file GsFilerV100Impl.h.

◆ skipSection()

virtual void OdGsFilerV100Impl::skipSection ( ) const
virtual

Implements OdGsFiler.

◆ subst()

virtual Substitutor* OdGsFilerV100Impl::subst ( ) const
virtual

Implements OdGsFiler.

◆ unregisterPtr()

virtual void OdGsFilerV100Impl::unregisterPtr ( const void pPtr)
virtual

Implements OdGsFiler.

◆ version()

virtual OdUInt32 OdGsFilerV100Impl::version ( ) const
virtual

Implements OdGsFiler.

◆ wrClass()

virtual void OdGsFilerV100Impl::wrClass ( OdRxObject pObj)
virtual

Implements OdGsFiler.

◆ wrDbHash()

virtual void OdGsFilerV100Impl::wrDbHash ( const OdDbBaseDatabase pDb)
virtual

Implements OdGsFiler.

◆ wrEOFSection()

virtual void OdGsFilerV100Impl::wrEOFSection ( )
virtual

Implements OdGsFiler.

◆ wrHandle()

virtual void OdGsFilerV100Impl::wrHandle ( OdDbStub *  pHandle)
virtual

Implements OdGsFiler.

◆ wrHeaderSection()

void OdGsFilerV100Impl::wrHeaderSection ( )

◆ wrRawData()

virtual void OdGsFilerV100Impl::wrRawData ( const void pData,
OdUInt32  nDataSize 
)
virtual

Implements OdGsFiler.

◆ wrSectionBegin()

virtual void OdGsFilerV100Impl::wrSectionBegin ( Section  section)
virtual

Implements OdGsFiler.

◆ wrSectionEnd()

virtual void OdGsFilerV100Impl::wrSectionEnd ( Section  section)
virtual

Implements OdGsFiler.

Member Data Documentation

◆ m_arbData

ArbDataMap OdGsFilerV100Impl::m_arbData
protected

Definition at line 358 of file GsFilerV100Impl.h.

◆ m_nCurSection

Section OdGsFilerV100Impl::m_nCurSection
mutableprotected

Definition at line 341 of file GsFilerV100Impl.h.

◆ m_nCurSectionSize

OdUInt32 OdGsFilerV100Impl::m_nCurSectionSize
mutableprotected

Definition at line 342 of file GsFilerV100Impl.h.

◆ m_nFlags

OdUInt32 OdGsFilerV100Impl::m_nFlags
protected

Definition at line 339 of file GsFilerV100Impl.h.

◆ m_nSectionsToRead

OdUInt64 OdGsFilerV100Impl::m_nSectionsToRead
protected

Definition at line 338 of file GsFilerV100Impl.h.

◆ m_nSectionsToWrite

OdUInt64 OdGsFilerV100Impl::m_nSectionsToWrite
protected

Definition at line 337 of file GsFilerV100Impl.h.

◆ m_nVersion

OdUInt32 OdGsFilerV100Impl::m_nVersion
protected

Definition at line 340 of file GsFilerV100Impl.h.

◆ m_pLinker

OdGsFilerDbLinkerPtr OdGsFilerV100Impl::m_pLinker
protected

Definition at line 336 of file GsFilerV100Impl.h.

◆ m_pStream

OdStreamBufPtr OdGsFilerV100Impl::m_pStream
mutableprotected

Definition at line 335 of file GsFilerV100Impl.h.

◆ m_regPtrs

RegPtrsSet OdGsFilerV100Impl::m_regPtrs
protected

Definition at line 360 of file GsFilerV100Impl.h.

◆ m_sectionStack

OdStack<WrSectionData> OdGsFilerV100Impl::m_sectionStack
protected

Definition at line 355 of file GsFilerV100Impl.h.

◆ m_subst

OdSmartPtr<OdGsFiler_SubstitutorImpl> OdGsFilerV100Impl::m_subst
mutableprotected

Definition at line 356 of file GsFilerV100Impl.h.


The documentation for this class was generated from the following file: