te::xsd::Identifiable Class Reference

A base class for XSD classes that must provide a unique ID property. More...

#include <Identifiable.h>

Inheritance diagram for te::xsd::Identifiable:
te::xsd::All te::xsd::Annotation te::xsd::Any te::xsd::AnyAttribute te::xsd::Attribute te::xsd::AttributeGroup te::xsd::Choice te::xsd::ComplexContent te::xsd::ComplexType te::xsd::Element te::xsd::Extension te::xsd::Field te::xsd::Group te::xsd::IdentityConstraint te::xsd::Import te::xsd::Include te::xsd::Notation te::xsd::Redefine te::xsd::Restriction4ComplexContent te::xsd::Restriction4SimpleContent te::xsd::Schema te::xsd::Selector te::xsd::Sequence te::xsd::SimpleContent te::xsd::SimpleType te::xsd::SimpleTypeConstructor

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...
 
Identifiableoperator= (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...
 

Detailed Description

A base class for XSD classes that must provide a unique ID property.

See also
Annotation, Attribute, Schema

Definition at line 46 of file Identifiable.h.

Constructor & Destructor Documentation

te::xsd::Identifiable::Identifiable ( std::string *  id = 0)
protected

Constructor.

Parameters
idThe unique ID for the XSD element.
Note
The Identifiable object will take the ownership of the informed pointer.
te::xsd::Identifiable::Identifiable ( const Identifiable rhs)
protected

Copy constructor.

Parameters
rhsRight-hand-side object.
te::xsd::Identifiable::~Identifiable ( )
protected

Protected non-virtual destructor.

Member Function Documentation

std::string* te::xsd::Identifiable::getId ( ) const

It returns a pointer (may be NULL) to the object id.

Identifiable& te::xsd::Identifiable::operator= ( const Identifiable rhs)
protected

Assignment operator.

Parameters
rhsRight-hand-side object.
Returns
A reference to this object.
void te::xsd::Identifiable::setId ( std::string *  id)

it sets the id.

Parameters
idThe id to be associated to the object. It will take the ownership of the given string.

Member Data Documentation

std::string* te::xsd::Identifiable::m_id
private

It specifies a unique identifier for the element. (Optional)

Definition at line 92 of file Identifiable.h.


The documentation for this class was generated from the following file: