Base class for part, instance and assembly. More...
#include <cadex/ModelData/ModelElement.hxx>
Public Member Functions | |
void | SetName (const UTF16String &theName) |
Sets a name. | |
UTF16String | Name () const |
Returns a name. | |
void | SetUuid (const Uuid &theUuid) |
Sets an object uuid. | |
cadex::Uuid | Uuid () const |
Returns an object uuid. | |
void | Accept (ModelElementVisitor &theVisitor) const |
Accepts an element visitor. | |
![]() | |
size_t | Id () const |
Return unique identifier of public object. | |
internal::BaseObjectImpl * | Impl () const |
bool | IsNull () const |
operator bool () const | |
template<typename T > | |
bool | IsOfType () const |
template<typename T > | |
T * | Impl () const |
Reserved for internal use. | |
Static Public Member Functions | |
static bool | CompareType (const BaseObject &theObject) |
Returns true if theObject is a model element. | |
Protected Member Functions | |
ModelElement (const ImplType &theImpl) | |
![]() | |
BaseObject (const ImplType &theImpl) | |
Additional Inherited Members | |
![]() | |
typedef std::shared_ptr< internal::BaseObjectImpl > | ImplType |
Base class for part, instance and assembly.
void cadex::ModelData::ModelElement::Accept | ( | ModelElementVisitor & | theVisitor | ) | const |
Accepts an element visitor.
The order of visiting depends on the type of this object:
UTF16String cadex::ModelData::ModelElement::Name | ( | ) | const |
Returns a name.
Returns empty string if the model element has no name (by default).
void cadex::ModelData::ModelElement::SetName | ( | const UTF16String & | theName | ) |
void cadex::ModelData::ModelElement::SetUuid | ( | const Uuid & | theUuid | ) |
Sets an object uuid.
Must not be called on IsNull() object. Otherwise behavior is undefined.
Uuid cadex::ModelData::ModelElement::Uuid | ( | ) | const |
Returns an object uuid.
Returns nullable uuid if the object has no uuid (by default).