CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbSymbolTable.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
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{
56public:
60 OdDbObjectId existingRecId);
65};
66
67
86{
87public:
89
97
113 const OdString& sName,
114 OdDb::OpenMode openMode,
115 bool getErasedRecord = false) const;
116
128 const OdString& sName,
129 bool getErasedRecord = false) const;
130
131
142 virtual bool has( const OdString& sName ) const;
143
154 virtual bool has( const OdDbObjectId& objectId ) const;
155
156
169 bool atBeginning = true,
170 bool skipDeleted = true) const;
171
172
190
191
193 OdDbDwgFiler* pFiler);
194
195 virtual void dwgOutFields(
196 OdDbDwgFiler* pFiler) const;
197
199 OdDbDxfFiler* pFiler);
200
201 virtual void dxfOutFields(
202 OdDbDxfFiler* pFiler) const;
203
205 OdDbDxfFiler* pFiler);
206
207 virtual void dxfOut(
208 OdDbDxfFiler* pFiler) const;
209
211 OdDbDxfFiler* pFiler);
212
213 virtual void dxfOutFields_R12(
214 OdDbDxfFiler* pFiler) const;
215};
216
225
226
227
228class OdDbSymbolTableIteratorImpl;
229
238{
239public:
241
251 virtual void start(
252 bool atBeginning = true,
253 bool skipErased = true);
254
258 virtual bool done() const;
259
263 virtual OdDbObjectId getRecordId() const;
264
276 bool openErasedRecord = false) const;
277
284 virtual void step(
285 bool forward = true,
286 bool skipErased = true);
287
292 virtual void seek(
293 const OdDbObjectId& ObjectId);
294
299 virtual void seek(
300 const OdDbSymbolTableRecord* pRecord);
301
303protected:
304 friend class OdDbSymbolTable;
305
308 OdDbSymbolTableIteratorImpl* pImpl);
309
310 OdDbSymbolTableIteratorImpl* m_pImpl;
311};
312
313#include "TD_PackPop.h"
314
315#endif // _ODDBSYMBOLTABLE_INCLUDED
316
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdSmartPtr< OdDbSymbolTable > OdDbSymbolTablePtr
OdSmartPtr< OdDbSymbolTableRecord > OdDbSymbolTableRecordPtr
Definition: DbSymbolTable.h:44
OdSmartPtr< OdDbSymbolTableIterator > OdDbSymbolTableIteratorPtr
Definition: DbSymbolTable.h:40
OdResult
Definition: OdResult.h:29
virtual bool has(const OdDbObjectId &objectId) const
virtual void dxfOut(OdDbDxfFiler *pFiler) const
virtual OdDbObjectId getAt(const OdString &sName, bool getErasedRecord=false) const
ODDB_DECLARE_MEMBERS(OdDbSymbolTable)
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
virtual OdResult dxfIn(OdDbDxfFiler *pFiler)
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
virtual OdDbObjectId add(OdDbSymbolTableRecord *pRecord)
virtual OdDbSymbolTableRecordPtr getAt(const OdString &sName, OdDb::OpenMode openMode, bool getErasedRecord=false) const
virtual bool has(const OdString &sName) const
virtual OdResult dxfInFields_R12(OdDbDxfFiler *pFiler)
virtual OdDbSymbolTableIteratorPtr newIterator(bool atBeginning=true, bool skipDeleted=true) const
virtual void dxfOutFields_R12(OdDbDxfFiler *pFiler) const
virtual void step(bool forward=true, bool skipErased=true)
OdDbSymbolTableIteratorImpl * m_pImpl
virtual OdDbSymbolTableRecordPtr getRecord(OdDb::OpenMode openMode=OdDb::kForRead, bool openErasedRecord=false) const
virtual bool done() const
virtual ~OdDbSymbolTableIterator()
virtual void seek(const OdDbObjectId &ObjectId)
OdDbSymbolTableIterator(OdDbSymbolTableIteratorImpl *pImpl)
virtual OdDbObjectId getRecordId() const
virtual void start(bool atBeginning=true, bool skipErased=true)
ODRX_DECLARE_MEMBERS(OdDbSymbolTableIterator)
virtual void seek(const OdDbSymbolTableRecord *pRecord)
OdDbObjectId existingRecordId() const
OdError_DuplicateRecordName(OdDbObjectId existingRecId)
OpenMode
Definition: DbObjectId.h:54
@ kForRead
Definition: DbObjectId.h:56