![]() |
Public Methods | |
| sdNameSpace (const std::string &name, const unsigned int version) | |
| sdNameSpace (const std::string &name, const unsigned int &version, const StringVector &dependencies, const StringVector &aliases) | |
| virtual | ~sdNameSpace () |
| const sdValue * | findValue (unsigned int enumValue) const |
| const sdValue * | findValue (const std::string &enumName) const |
| const sdAttribute * | findAttribute (unsigned int enumValue) const |
| const sdAttribute * | findAttribute (const std::string &enumName) const |
| const sdObject * | findObject (unsigned int enumValue) const |
| const sdObject * | findObject (const std::string &enumName) const |
| const sdRelationshipBase * | findRelationship (unsigned int enumValue) const |
| const sdRelationshipBase * | findRelationship (const std::string &enumName) const |
| const std::string & | getName () const |
| unsigned int | getVersion () const |
| bool | dependsOn (const sdNameSpace *nameSpace) const |
| bool | isInitialized () const |
| ValueConstIter | beginValue () const |
| ValueConstIter | endValue () const |
| AttributeConstIter | beginAttribute () const |
| AttributeConstIter | endAttribute () const |
| RelationshipConstIter | beginRelationship () const |
| RelationshipConstIter | endRelationship () const |
| ObjectConstIter | beginObject () const |
| ObjectConstIter | endObject () const |
| StringConstIter | beginDependentNameSpace () const |
| StringConstIter | endDependentNameSpace () const |
| StringConstIter | beginNameAlias () const |
| StringConstIter | endNameAlias () const |
| virtual void | accept (sdVisitor *visitor) |
Public Types | |
| typedef std::map< unsigned int, const sdValue * > | ValueMap |
| typedef std::map< unsigned int, const sdAttribute * > | AttributeMap |
| typedef std::map< unsigned int, const sdRelationshipBase * > | RelationshipMap |
| typedef std::map< unsigned int, const sdObject * > | ObjectMap |
| typedef std::vector< std::string > | StringVector |
| typedef ValueMap::const_iterator | ValueConstIter |
| typedef AttributeMap::const_iterator | AttributeConstIter |
| typedef RelationshipMap::const_iterator | RelationshipConstIter |
| typedef ObjectMap::const_iterator | ObjectConstIter |
| typedef StringVector::const_iterator | StringConstIter |
Friends | |
| class | sdValue |
| class | sdAttribute |
| class | sdObject |
| class | sdRelationshipBase |
| class | sdField |
| class | sdSession |
Note: sdNameSpace is conceptually like a C++ namespace. It serves a different purpose than oaNameSpace, which mainly supports name mapping between different name spaces.
The Creating Schema Definitions document in the Programmers Guide has an example that creates an sdNameSpace.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
This is an sdNameSpace constructor that takes a name and a version number.
|
|
||||||||||||||||||||
|
This sdNameSpace constructor takes a name and a version number, and lets you specify any namespaces that are dependent on this namespace. This constructor also lets you specify aliases for this namespace.
|
|
|
This is the sdNameSpace destructor. |
|
|
This function calls the visit function of the specified visitor on the sdNameSpace object.
|
|
|
This function returns the constant iterator that points to the first attribute object in this namespace. |
|
|
This function returns the constant iterator that points to the first dependent namespace of this namespace. |
|
|
This function returns the constant iterator that points to the first name alias of this namespace.
|
|
|
This function returns the constant iterator that points to the first sdObject in this namespace. |
|
|
This function returns the constant iterator that points to the first relationship object in this namespace. |
|
|
This function returns the constant iterator that points to the first value object in this namespace. |
|
|
This function returns a boolean indicating whether or not the specified namespace matches this namespace or any namespace in the dependent namespace hierarchy of this namespace.
|
|
|
This function returns the constant iterator for that points to the last attribute object in this namespace. |
|
|
This function returns the constant iterator that points to the last dependent namespace of this namespace.
|
|
|
This function returns the constant iterator that points to the last name alias of this namespace.
|
|
|
This function returns the constant iterator that points to the last sdObject in this namespace. |
|
|
This function returns the constant iterator that points to the last relationship object in this namespace. |
|
|
This function returns the constant iterator that points to the the last value object in this namespace. |
|
|
This function returns an sdAttribute object with the specified string name in this namespace. If the sdAttribute object does not exist, this function returns NULL.
|
|
|
This function returns an sdAttribute object with the specified enum value in this namespace. If the sdAttribute object does not exits, this function returns NULL.
|
|
|
This function returns an sdObject object with the specified string name in this namespace. If the sdObject object does not exist, this function returns NULL.
|
|
|
This function returns an sdObject with the specified enum value in this namespace. If the sdObject does not exits, this function returns NULL.
|
|
|
This function returns an sdRelationship object with the specified string name in this namespace. If the sdRelationship object does not exist, this function returns NULL.
|
|
|
This function returns an sdRelationship object with the specified enum value in this namespace. If the sdRelationship object does not exits, this function returns NULL.
|
|
|
This function returns an sdValue object with the specified string name in this namespace. If the sdValue object does not exist, this function returns NULL.
|
|
|
This function returns an sdValue object with the specified enum value in this namespace. If the sdValue object does not exits, this function returns NULL.
|
|
|
This function returns the name of this namespace. |
|
|
This function returns the version of this namespace. |
|
|
This function returns a boolean indicating whether or not this namespace is initialized. It checks whether any of the object maps is empty.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.