OS-IoT
Public Member Functions | List of all members
onem2m::URIReference Class Reference

Class corresponding to the URIReference schema type. More...

Public Member Functions

virtual ~URIReference ()
 Destructor.
 

name

Accessor and modifier functions for the name required element.

typedef ::xml_schema::ncname name_type
 Element type.
 
typedef ::xsd::cxx::tree::traits< name_type, char > name_traits
 Element traits type.
 
const name_typename () const
 Return a read-only (constant) reference to the element. More...
 
name_typename ()
 Return a read-write reference to the element. More...
 
void name (const name_type &x)
 Set the element value. More...
 
void name (::std::unique_ptr< name_type > p)
 Set the element value without copying. More...
 

URI

Accessor and modifier functions for the URI required element.

typedef ::xml_schema::uri URI_type
 Element type.
 
typedef ::xsd::cxx::tree::traits< URI_type, char > URI_traits
 Element traits type.
 
const URI_typeURI () const
 Return a read-only (constant) reference to the element. More...
 
URI_typeURI ()
 Return a read-write reference to the element. More...
 
void URI (const URI_type &x)
 Set the element value. More...
 
void URI (::std::unique_ptr< URI_type > p)
 Set the element value without copying. More...
 

Constructors

 URIReference (const name_type &, const URI_type &)
 Create an instance from the ultimate base and initializers for required elements and attributes.
 
 URIReference (const ::xercesc::DOMElement &e,::xml_schema::flags f=0,::xml_schema::container *c=0)
 Create an instance from a DOM element. More...
 
 URIReference (const URIReference &x,::xml_schema::flags f=0,::xml_schema::container *c=0)
 Copy constructor. More...
 
URIReferenceoperator= (const URIReference &x)
 Copy assignment operator. More...
 

Detailed Description

Class corresponding to the URIReference schema type.

Constructor & Destructor Documentation

onem2m::URIReference::URIReference ( const ::xercesc::DOMElement &  e,
::xml_schema::flags  f = 0,
::xml_schema::container c = 0 
)

Create an instance from a DOM element.

Parameters
eA DOM element to extract the data from.
fFlags to create the new instance with.
cA pointer to the object that will contain the new instance.
onem2m::URIReference::URIReference ( const URIReference x,
::xml_schema::flags  f = 0,
::xml_schema::container c = 0 
)

Copy constructor.

Parameters
xAn instance to make a copy of.
fFlags to create the copy with.
cA pointer to the object that will contain the copy.

For polymorphic object models use the _clone function instead.

Member Function Documentation

const URIReference::name_type & onem2m::URIReference::name ( ) const

Return a read-only (constant) reference to the element.

Returns
A constant reference to the element.
URIReference::name_type & onem2m::URIReference::name ( )

Return a read-write reference to the element.

Returns
A reference to the element.
void onem2m::URIReference::name ( const name_type x)

Set the element value.

Parameters
xA new value to set.

This function makes a copy of its argument and sets it as the new value of the element.

void onem2m::URIReference::name ( ::std::unique_ptr< name_type p)

Set the element value without copying.

Parameters
pA new value to use.

This function will try to use the passed value directly instead of making a copy.

URIReference & onem2m::URIReference::operator= ( const URIReference x)

Copy assignment operator.

Parameters
xAn instance to make a copy of.
Returns
A reference to itself.

For polymorphic object models use the _clone function instead.

const URIReference::URI_type & onem2m::URIReference::URI ( ) const

Return a read-only (constant) reference to the element.

Returns
A constant reference to the element.
URIReference::URI_type & onem2m::URIReference::URI ( )

Return a read-write reference to the element.

Returns
A reference to the element.
void onem2m::URIReference::URI ( const URI_type x)

Set the element value.

Parameters
xA new value to set.

This function makes a copy of its argument and sets it as the new value of the element.

void onem2m::URIReference::URI ( ::std::unique_ptr< URI_type p)

Set the element value without copying.

Parameters
pA new value to use.

This function will try to use the passed value directly instead of making a copy.


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