API Reference > OdDb Classes > OdDbDictionary Class
OdDbDictionary Class
OdDbDictionaryOdDbDictionaryOdDbDictionary
Syntax
C++
class OdDbDictionary : public OdDbObject;

DbDictionary.h

This class implements database -resident object dictionaries. 

Corresponding C++ library: TD_Db

  • Each instance of OdDbDictionary is a single container object, in which entries are searched, added, modified, and deleted.
  • Each OdDbDictionary entry associates a unique name (key) string with a unique OdDbObject.
  • Anonymous names are signified by specifying a name starting with an asterisk; e.g., *U. A unique name (also starting with an asterisk) will be constructed for the entry.
  • Entry names honor the rules of Symbol names:
    • Names may be any length.
    • Names are case-insensitive.
    • Names may not contain any of the following characters: | * : ; < > ? " , equals.
 
Name 
Description 
 
Notification function called each time an Undo operation is performed this object is using partial Undo.
 
 
Reads the .dwg file data of this object.
 
 
Writes the .dwg file data of this object.
 
 
Reads the DXF data of this object.
 
 
Writes the DXF data of this object.
 
 
Notification function called whenever an object has been erased or unerased.
 
 
This is the overview for the getAt method overload. 
 
Notification function called just before an object is deleted from memory.
 
 
has 
This is the overview for the has method overload. 
 
Returns true if and only if this Dictionary object is the hard owner of its elements. 
 
Returns the merge style for this dictionary object. 
 
Returns the entry name (key) of the specified object in this Dictionary object.
 
 
Returns a new interator that can be used to traverse the entries in this Dictionary object.
 
 
Returns the number of entries in this Dictionary object. 
 
This is the overview for the remove method overload. 
 
Sets the value for the specified entry in this Dictionary object. 
 
Sets the merge style for this dictionary object.
 
 
Changes the name (key) of the specified entry in this Dictionary object.
 
 
Sets the hard ownership property for this Dictionary object.
 
 
Called as the first operation as this object is being closed, for database -resident objects only. 
 
overridables 
 
Returns a string suitable to be used as dictionary Key for this dictionary object. The string is unique for this dictionary object and is as close to file name as possible.
 
Copyright © 2002–2021. Open Design Alliance. All rights reserved.