Defines a component represented by a datum, datum feature symbol or datum target. More...
#include <cadex/PMI/SemanticComponent.hxx>
Public Member Functions | |
DatumComponent () | |
Constructor. | |
DatumComponent (const UTF16String &theLabel) | |
Constructor. | |
void | SetLabel (const UTF16String &theLabel) |
Sets the label of the datum. | |
UTF16String | Label () const |
Returns the label of the datum. | |
![]() | |
void | AddAttribute (const SemanticAttribute &theAttribute) |
Adds the attribute. | |
const std::vector< PMI::SemanticAttribute > & | Attributes () const |
Returns the attributes. | |
bool | HasAttributes () const |
Returns true if semantic attributes were added and false otherwise. | |
size_t | NumberOfAttributes () const |
Returns the number of added attributes. | |
void | Accept (SemanticAttributeVisitor &theVisitor) const |
Accepts an attribute visitor. | |
void | Accept (SemanticComponentVisitor &theVisitor) const |
Accepts the 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 has the DatumComponent type. | |
![]() | |
static bool | CompareType (const BaseObject &theObject) |
Returns true if theObject has the SemanticComponent type. | |
Additional Inherited Members | |
![]() | |
typedef std::shared_ptr< internal::BaseObjectImpl > | ImplType |
![]() | |
SemanticComponent (const ImplType &theImpl) | |
![]() | |
BaseObject (const ImplType &theImpl) | |
Defines a component represented by a datum, datum feature symbol or datum target.
The datum has a label (A, B, etc.) and optionally additional attributes like index, datum target description, etc.