CFx SDK Documentation  2020SP3
DbSymbolTable.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 
26 
27 #ifndef _ODDBSYMBOLTABLE_INCLUDED
28 #define _ODDBSYMBOLTABLE_INCLUDED
29 
30 #include "TD_PackPush.h"
31 
32 #include "DbObject.h"
33 
36 
45 
46 
55 {
56 public:
60  OdDbObjectId existingRecId);
65 };
66 
67 
88 {
89 public:
91 
99 
115  const OdString& sName,
116  OdDb::OpenMode openMode,
117  bool getErasedRecord = false) const;
118 
130  const OdString& sName,
131  bool getErasedRecord = false) const;
132 
133 
144  virtual bool has( const OdString& sName ) const;
145 
156  virtual bool has( const OdDbObjectId& objectId ) const;
157 
158 
171  bool atBeginning = true,
172  bool skipDeleted = true) const;
173 
174 
192 
193 
195  OdDbDwgFiler* pFiler);
196 
197  virtual void dwgOutFields(
198  OdDbDwgFiler* pFiler) const;
199 
201  OdDbDxfFiler* pFiler);
202 
203  virtual void dxfOutFields(
204  OdDbDxfFiler* pFiler) const;
205 
206  virtual OdResult dxfIn(
207  OdDbDxfFiler* pFiler);
208 
209  virtual void dxfOut(
210  OdDbDxfFiler* pFiler) const;
211 
213  OdDbDxfFiler* pFiler);
214 
215  virtual void dxfOutFields_R12(
216  OdDbDxfFiler* pFiler) const;
217 };
218 
227 
228 
229 
230 class OdDbSymbolTableIteratorImpl;
231 
240 {
241 public:
243 
253  virtual void start(
254  bool atBeginning = true,
255  bool skipErased = true);
256 
260  virtual bool done() const;
261 
265  virtual OdDbObjectId getRecordId() const;
266 
277  OdDb::OpenMode openMode = OdDb::kForRead,
278  bool openErasedRecord = false) const;
279 
286  virtual void step(
287  bool forward = true,
288  bool skipErased = true);
289 
294  virtual void seek(
295  const OdDbObjectId& ObjectId);
296 
301  virtual void seek(
302  const OdDbSymbolTableRecord* pRecord);
303 
305 protected:
306  friend class OdDbSymbolTable;
307 
310  OdDbSymbolTableIteratorImpl* pImpl);
311 
312  OdDbSymbolTableIteratorImpl* m_pImpl;
313 };
314 
315 #include "TD_PackPop.h"
316 
317 #endif // _ODDBSYMBOLTABLE_INCLUDED
318 
OdResult
OdResult
Definition: OdResult.h:29
OdDbSymbolTable::getAt
virtual OdDbObjectId getAt(const OdString &sName, bool getErasedRecord=false) const
OdString
Definition: OdString.h:95
OdDbSymbolTable::has
virtual bool has(const OdDbObjectId &objectId) const
OdDbSymbolTable::dxfOutFields_R12
virtual void dxfOutFields_R12(OdDbDxfFiler *pFiler) const
OdDbSymbolTableIterator::done
virtual bool done() const
OdDbSymbolTable::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDbSymbolTable::has
virtual bool has(const OdString &sName) const
DbObject.h
OdError_DuplicateRecordName
Definition: DbSymbolTable.h:55
OdDbSymbolTableIterator::~OdDbSymbolTableIterator
virtual ~OdDbSymbolTableIterator()
OdRxObject
Definition: RxObject.h:564
OdDbObjectId
Definition: DbObjectId.h:99
OdDbSymbolTablePtr
OdSmartPtr< OdDbSymbolTable > OdDbSymbolTablePtr
Definition: DbSymbolTable.h:226
OdDbSymbolTableIterator::getRecordId
virtual OdDbObjectId getRecordId() const
OdDbSymbolTableIterator::seek
virtual void seek(const OdDbObjectId &ObjectId)
TD_PackPop.h
OdDbSymbolTableIterator::step
virtual void step(bool forward=true, bool skipErased=true)
OdDbSymbolTable::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbSymbolTable::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbSymbolTable)
OdDb::kForRead
@ kForRead
Definition: DbObjectId.h:56
OdDbSymbolTable::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdSmartPtr
Definition: SmartPtr.h:58
OdDbSymbolTable::getAt
virtual OdDbSymbolTableRecordPtr getAt(const OdString &sName, OdDb::OpenMode openMode, bool getErasedRecord=false) const
OdError_DuplicateRecordName::OdError_DuplicateRecordName
OdError_DuplicateRecordName(OdDbObjectId existingRecId)
OdDbSymbolTableIterator::getRecord
virtual OdDbSymbolTableRecordPtr getRecord(OdDb::OpenMode openMode=OdDb::kForRead, bool openErasedRecord=false) const
OdDbSymbolTable::dxfInFields_R12
virtual OdResult dxfInFields_R12(OdDbDxfFiler *pFiler)
OdError_DuplicateRecordName::existingRecordId
OdDbObjectId existingRecordId() const
OdDbSymbolTable::dxfOut
virtual void dxfOut(OdDbDxfFiler *pFiler) const
OdDbDxfFiler
Definition: DbFiler.h:194
OdDbSymbolTableRecord
Definition: DbSymbolTableRecord.h:56
TD_PackPush.h
OdDbSymbolTableIterator::OdDbSymbolTableIterator
OdDbSymbolTableIterator(OdDbSymbolTableIteratorImpl *pImpl)
OdDbSymbolTableIterator::m_pImpl
OdDbSymbolTableIteratorImpl * m_pImpl
Definition: DbSymbolTable.h:312
OdDb::OpenMode
OpenMode
Definition: DbObjectId.h:54
OdDbSymbolTableIterator::OdDbSymbolTableIterator
OdDbSymbolTableIterator()
OdDbSymbolTable::newIterator
virtual OdDbSymbolTableIteratorPtr newIterator(bool atBeginning=true, bool skipDeleted=true) const
OdDbSymbolTableIterator
Definition: DbSymbolTable.h:240
OdError
Definition: OdError.h:43
OdDbSymbolTable
Definition: DbSymbolTable.h:88
OdDbSymbolTable::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdDbSymbolTableIterator::start
virtual void start(bool atBeginning=true, bool skipErased=true)
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdDbSymbolTableIteratorPtr
OdSmartPtr< OdDbSymbolTableIterator > OdDbSymbolTableIteratorPtr
Definition: DbSymbolTable.h:35
OdDbSymbolTableIterator::seek
virtual void seek(const OdDbSymbolTableRecord *pRecord)
OdDbSymbolTable::OdDbSymbolTable
OdDbSymbolTable()
OdDbSymbolTable::dxfIn
virtual OdResult dxfIn(OdDbDxfFiler *pFiler)
OdDbSymbolTableRecordPtr
OdSmartPtr< OdDbSymbolTableRecord > OdDbSymbolTableRecordPtr
Definition: DbSymbolTable.h:44
OdDbObject
Definition: DbObject.h:211
OdDbDwgFiler
Definition: DbFiler.h:1031
OdDbSymbolTableIterator::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdDbSymbolTableIterator)
OdDbSymbolTable::add
virtual OdDbObjectId add(OdDbSymbolTableRecord *pRecord)