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

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

Public Member Functions

virtual ~dataLink ()
 Destructor.
 

name

Accessor and modifier functions for the name required element.

typedef ::xml_schema::uri 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...
 

dataContainerID

Accessor and modifier functions for the dataContainerID required element.

const dataContainerID_typedataContainerID () const
 Return a read-only (constant) reference to the element. More...
 
dataContainerID_typedataContainerID ()
 Return a read-write reference to the element. More...
 
void dataContainerID (const dataContainerID_type &x)
 Set the element value. More...
 
void dataContainerID (::std::unique_ptr< dataContainerID_type > p)
 Set the element value without copying. More...
 

attributeName

Accessor and modifier functions for the attributeName optional element.

typedef ::xml_schema::ncname attributeName_type
 Element type.
 
typedef ::xsd::cxx::tree::optional< attributeName_typeattributeName_optional
 Element optional container type.
 
typedef ::xsd::cxx::tree::traits< attributeName_type, char > attributeName_traits
 Element traits type.
 
const attributeName_optionalattributeName () const
 Return a read-only (constant) reference to the element container. More...
 
attributeName_optionalattributeName ()
 Return a read-write reference to the element container. More...
 
void attributeName (const attributeName_type &x)
 Set the element value. More...
 
void attributeName (const attributeName_optional &x)
 Set the element value. More...
 
void attributeName (::std::unique_ptr< attributeName_type > p)
 Set the element value without copying. More...
 

Constructors

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

Detailed Description

Class corresponding to the dataLink schema type.

Constructor & Destructor Documentation

onem2m::dataLink::dataLink ( 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::dataLink::dataLink ( const dataLink 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 dataLink::attributeName_optional & onem2m::dataLink::attributeName ( ) const

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

Returns
A constant reference to the optional container.
dataLink::attributeName_optional & onem2m::dataLink::attributeName ( )

Return a read-write reference to the element container.

Returns
A reference to the optional container.
void onem2m::dataLink::attributeName ( const attributeName_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::dataLink::attributeName ( const attributeName_optional x)

Set the element value.

Parameters
xAn optional container with the new value to set.

If the value is present in x then this function makes a copy of this value and sets it as the new value of the element. Otherwise the element container is set the 'not present' state.

void onem2m::dataLink::attributeName ( ::std::unique_ptr< attributeName_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.

const dataLink::dataContainerID_type & onem2m::dataLink::dataContainerID ( ) const

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

Returns
A constant reference to the element.
dataLink::dataContainerID_type & onem2m::dataLink::dataContainerID ( )

Return a read-write reference to the element.

Returns
A reference to the element.
void onem2m::dataLink::dataContainerID ( const dataContainerID_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::dataLink::dataContainerID ( ::std::unique_ptr< dataContainerID_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.

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

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

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

Return a read-write reference to the element.

Returns
A reference to the element.
void onem2m::dataLink::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::dataLink::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.

dataLink & onem2m::dataLink::operator= ( const dataLink 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.


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