CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
DbDictionary.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2024, 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-2024 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 _ODDBDICTIONARY_INCLUDED_
28#define _ODDBDICTIONARY_INCLUDED_
29
30#include "TD_PackPush.h"
31
32#include "RxIterator.h"
33#include "RxDefs.h"
34#include "DbObject.h"
35#include "DwgDeclareMembers.h"
36
37class OdDbDictionaryImpl;
38class OdDbObjectId;
39class OdString;
40
54{
55public:
57
59
64 virtual OdString name() const = 0;
65
75 OdDb::OpenMode openMode = OdDb::kForRead) = 0;
76
81 virtual OdDbObjectId objectId() const = 0;
82
92 virtual bool setPosition(
94
101 virtual OdRxObjectPtr object() const;
102
103protected:
104
106};
107
112
135{
137
138protected:
140
141public:
154 const OdString& name,
155 OdDb::OpenMode mode) const;
156
169 const OdString& name,
170 OdResult* pStatus = 0) const;
171
181 const OdDbObjectId& objectId) const;
182
188 bool has(
189 const OdString& name) const;
190
196 bool has(
197 const OdDbObjectId& objectId) const;
198
203
215 const OdString& name);
216
228 void remove(
229 const OdDbObjectId& objectId);
230
241 const OdString& oldName,
242 const OdString& newName);
243
260 const OdString& name,
261 OdDbObject* newValue);
262
270
280 bool doIt);
281
297 OdRx::DictIterType iterType = OdRx::kDictCollated) const;
298
307
315
316 enum
317 {
319 };
327 OdString suggestName(const OdString& strFilePath, const int nMaxLength = kMaxSuggestNameSize) const;
328
330 OdDbDwgFiler* pFiler);
331
332 virtual void dwgOutFields(
333 OdDbDwgFiler* pFiler) const;
334
336 OdDbDxfFiler* pFiler);
337
338 virtual void dxfOutFields(
339 OdDbDxfFiler* pFiler) const;
340
345
351 virtual void setMergeStyle(
353
354 virtual void goodbye(
355 const OdDbObject* pObject);
356
357 virtual void erased(
358 const OdDbObject* pObject,
359 bool erasing = true);
360
362 void* pClsid) const;
363
364 virtual void applyPartialUndo(
365 OdDbDwgFiler* pFiler,
366 OdRxClass* pClass);
367
368 virtual void subClose();
369};
370
375
376#include "TD_PackPop.h"
377
378#endif
379
OdSmartPtr< OdDbDictionary > OdDbDictionaryPtr
Definition DbDatabase.h:109
OdSmartPtr< OdDbDictionaryIterator > OdDbDictionaryIteratorPtr
#define TOOLKIT_EXPORT
Definition DbExport.h:40
OdSmartPtr< OdDbObject > OdDbObjectPtr
Definition DbObject.h:1750
#define DWGMAP_DECLARE_MEMBERS(ClassName)
unsigned int OdUInt32
OdResult
Definition OdResult.h:29
OdDbObjectId remove(const OdString &name)
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
bool isTreatElementsAsHard() const
bool has(const OdDbObjectId &objectId) const
OdDbNextIteratorWrap< OdDbDictionaryIterator > begin() const
OdDbObjectId setAt(const OdString &name, OdDbObject *newValue)
OdString suggestName(const OdString &strFilePath, const int nMaxLength=kMaxSuggestNameSize) const
OdDbObjectId getAt(const OdString &name, OdResult *pStatus=0) const
OdString nameAt(const OdDbObjectId &objectId) const
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
virtual void erased(const OdDbObject *pObject, bool erasing=true)
virtual OdDb::DuplicateRecordCloning mergeStyle() const
OdUInt32 numEntries() const
OdDbDictionaryIteratorPtr newIterator(OdRx::DictIterType iterType=OdRx::kDictCollated) const
void remove(const OdDbObjectId &objectId)
bool setName(const OdString &oldName, const OdString &newName)
virtual OdResult subGetClassID(void *pClsid) const
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
virtual void applyPartialUndo(OdDbDwgFiler *pFiler, OdRxClass *pClass)
void setTreatElementsAsHard(bool doIt)
virtual void setMergeStyle(OdDb::DuplicateRecordCloning mergeStyle)
virtual void goodbye(const OdDbObject *pObject)
bool has(const OdString &name) const
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbObjectPtr getAt(const OdString &name, OdDb::OpenMode mode) const
virtual void subClose()
OdDbNextIteratorWrap< OdDbDictionaryIterator > end() const
virtual OdDbObjectPtr getObject(OdDb::OpenMode openMode=OdDb::kForRead)=0
virtual bool setPosition(OdDbObjectId objectId)=0
virtual OdRxObjectPtr object() const
virtual ~OdDbDictionaryIterator()
virtual OdDbObjectId objectId() const =0
ODRX_DECLARE_MEMBERS(OdDbDictionaryIterator)
virtual OdString name() const =0
OdDbObjectId objectId() const
GLuint const GLchar * name
Definition gles2_ext.h:265
DuplicateRecordCloning
Definition DbObject.h:128
@ kForRead
Definition DbObjectId.h:56
DictIterType
Definition RxDefs.h:38
@ kDictCollated
Definition RxDefs.h:40