CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbDictionary.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 _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(
93 OdDbObjectId objectId) = 0;
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
299 enum
300 {
301 kMaxSuggestNameSize = 2049
302 };
310 OdString suggestName(const OdString& strFilePath, const int nMaxLength = kMaxSuggestNameSize) const;
311
313 OdDbDwgFiler* pFiler);
314
315 virtual void dwgOutFields(
316 OdDbDwgFiler* pFiler) const;
317
319 OdDbDxfFiler* pFiler);
320
321 virtual void dxfOutFields(
322 OdDbDxfFiler* pFiler) const;
323
328
334 virtual void setMergeStyle(
336
337 virtual void goodbye(
338 const OdDbObject* pObject);
339
340 virtual void erased(
341 const OdDbObject* pObject,
342 bool erasing = true);
343
345 void* pClsid) const;
346
347 virtual void applyPartialUndo(
348 OdDbDwgFiler* pFiler,
349 OdRxClass* pClass);
350
351 virtual void subClose();
352};
353
358
359#include "TD_PackPop.h"
360
361#endif
362
OdSmartPtr< OdDbDictionaryIterator > OdDbDictionaryIteratorPtr
Definition: DbDictionary.h:111
OdSmartPtr< OdDbDictionary > OdDbDictionaryPtr
Definition: DbDictionary.h:357
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
#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
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()
virtual OdDbObjectPtr getObject(OdDb::OpenMode openMode=OdDb::kForRead)=0
virtual bool setPosition(OdDbObjectId objectId)=0
virtual OdRxObjectPtr object() const
virtual ~OdDbDictionaryIterator()
Definition: DbDictionary.h:58
virtual OdDbObjectId objectId() const =0
ODRX_DECLARE_MEMBERS(OdDbDictionaryIterator)
virtual OdString name() const =0
GLuint const GLchar * name
Definition: gles2_ext.h:265
DuplicateRecordCloning
Definition: DbObject.h:128
OpenMode
Definition: DbObjectId.h:54
@ kForRead
Definition: DbObjectId.h:56
DictIterType
Definition: RxDefs.h:38
@ kDictCollated
Definition: RxDefs.h:40