#include <DbObjectContextCollection.h>
This class represents a collection of objects that have context items defined.
- See also
- TD_Db
<group OdDb_Classes>
Definition at line 46 of file DbObjectContextCollection.h.
◆ addContext()
Copies a context and adds the copy to the context collection.
\param pContext [in] Pointer to the context for which a uniqueIdentifier is defined
to copy and add to the context collection.
\remarks
The new context is assigned a new uniqueIdentifier.
Returns eOk if successful, or an appropriate error code if not.
◆ currentContext()
Returns a pointer to the current context of the context collection.
\param pRequestingObject [in] Optional pointer to the object for which you want
the current context.
\remarks
If no current context exists, Null is returned.
◆ getContext()
Returns a pointer to a copy of a named context in the collection.
\param contextName [in] Name of the context.
\remarks
If no context exists with the specified name, Null is returned.
◆ hasContext()
virtual bool OdDbObjectContextCollection::hasContext |
( |
const OdString & |
contextName | ) |
const |
|
pure virtual |
Returns whether a named context exists in the collection.
\param contextName [in] Name of the context.
\returns
Returns true if the named context exists in the collection,
or returns Null if it does not exist.
◆ lockContext()
◆ locked()
virtual bool OdDbObjectContextCollection::locked |
( |
| ) |
const |
|
pure virtual |
◆ name()
virtual OdString OdDbObjectContextCollection::name |
( |
| ) |
const |
|
pure virtual |
Returns the name of the context collection.
\remarks
The context collection name is used by the context manager to identify the
collection and the context items that it contains.
◆ newIterator()
Returns an Iterator to the contexts in the collection.
◆ ODRX_DECLARE_MEMBERS()
◆ removeContext()
virtual OdResult OdDbObjectContextCollection::removeContext |
( |
const OdString & |
contextName | ) |
|
|
pure virtual |
Removes a context from the context collection.
\param contextName [in] Name of the context to delete from the context
collection.
\remarks
To remove the current context from a collection, first make a different
context current, then delete the desired context.
Returns eOk if successful, or an appropriate error code if not.
◆ setCurrentContext()
Sets the current context of the context collection.
\param pContext [in] Pointer to the context for which a uniqueIdentifier is defined
to make current for the context collection.
◆ unlockContext()
virtual OdResult OdDbObjectContextCollection::unlockContext |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: