A base class for XSD classes that must provide a unique ID property. More...
#include <Identifiable.h>
Public Member Functions | |
std::string * | getId () const |
It returns a pointer (may be NULL) to the object id. More... | |
void | setId (std::string *id) |
it sets the id. More... | |
Protected Member Functions | |
Identifiable (std::string *id=0) | |
Constructor. More... | |
Identifiable (const Identifiable &rhs) | |
Copy constructor. More... | |
Identifiable & | operator= (const Identifiable &rhs) |
Assignment operator. More... | |
~Identifiable () | |
Protected non-virtual destructor. More... | |
Private Attributes | |
std::string * | m_id |
It specifies a unique identifier for the element. (Optional) More... | |
A base class for XSD classes that must provide a unique ID property.
Definition at line 46 of file Identifiable.h.
|
protected |
Constructor.
id | The unique ID for the XSD element. |
Definition at line 40 of file Identifiable.cpp.
|
protected |
Copy constructor.
rhs | Right-hand-side object. |
Definition at line 45 of file Identifiable.cpp.
References m_id.
|
protected |
Protected non-virtual destructor.
Definition at line 51 of file Identifiable.cpp.
std::string * te::xsd::Identifiable::getId | ( | ) | const |
It returns a pointer (may be NULL) to the object id.
Definition at line 35 of file Identifiable.cpp.
|
protected |
Assignment operator.
rhs | Right-hand-side object. |
Definition at line 56 of file Identifiable.cpp.
References m_id.
Referenced by te::xsd::SimpleTypeConstructor::operator=(), te::xsd::Any::operator=(), te::xsd::AnyAttribute::operator=(), te::xsd::ComplexContent::operator=(), te::xsd::SimpleContent::operator=(), te::xsd::All::operator=(), te::xsd::Annotation::operator=(), te::xsd::SimpleType::operator=(), te::xsd::AttributeGroup::operator=(), te::xsd::Choice::operator=(), and te::xsd::Attribute::operator=().
void te::xsd::Identifiable::setId | ( | std::string * | id | ) |
it sets the id.
id | The id to be associated to the object. It will take the ownership of the given string. |
Definition at line 29 of file Identifiable.cpp.
References m_id.
Referenced by te::xsd::serialize::ReadIdentifiable().
|
private |
It specifies a unique identifier for the element. (Optional)
Definition at line 92 of file Identifiable.h.
Referenced by Identifiable(), operator=(), and setId().