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

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

Public Member Functions

virtual ~resource ()
 Destructor.
 

resourceType

Accessor and modifier functions for the resourceType optional element.

typedef ::onem2m::resourceType resourceType_type
 Element type.
 
typedef ::xsd::cxx::tree::optional< resourceType_typeresourceType_optional
 Element optional container type.
 
typedef ::xsd::cxx::tree::traits< resourceType_type, char > resourceType_traits
 Element traits type.
 
const resourceType_optionalresourceType () const
 Return a read-only (constant) reference to the element container. More...
 
resourceType_optionalresourceType ()
 Return a read-write reference to the element container. More...
 
void resourceType (const resourceType_type &x)
 Set the element value. More...
 
void resourceType (const resourceType_optional &x)
 Set the element value. More...
 
void resourceType (::std::unique_ptr< resourceType_type > p)
 Set the element value without copying. More...
 

resourceID

Accessor and modifier functions for the resourceID optional element.

typedef ::onem2m::ID resourceID_type
 Element type.
 
typedef ::xsd::cxx::tree::optional< resourceID_typeresourceID_optional
 Element optional container type.
 
typedef ::xsd::cxx::tree::traits< resourceID_type, char > resourceID_traits
 Element traits type.
 
const resourceID_optionalresourceID () const
 Return a read-only (constant) reference to the element container. More...
 
resourceID_optionalresourceID ()
 Return a read-write reference to the element container. More...
 
void resourceID (const resourceID_type &x)
 Set the element value. More...
 
void resourceID (const resourceID_optional &x)
 Set the element value. More...
 
void resourceID (::std::unique_ptr< resourceID_type > p)
 Set the element value without copying. More...
 

parentID

Accessor and modifier functions for the parentID optional element.

typedef ::onem2m::nhURI parentID_type
 Element type.
 
typedef ::xsd::cxx::tree::optional< parentID_typeparentID_optional
 Element optional container type.
 
typedef ::xsd::cxx::tree::traits< parentID_type, char > parentID_traits
 Element traits type.
 
const parentID_optionalparentID () const
 Return a read-only (constant) reference to the element container. More...
 
parentID_optionalparentID ()
 Return a read-write reference to the element container. More...
 
void parentID (const parentID_type &x)
 Set the element value. More...
 
void parentID (const parentID_optional &x)
 Set the element value. More...
 
void parentID (::std::unique_ptr< parentID_type > p)
 Set the element value without copying. More...
 

creationTime

Accessor and modifier functions for the creationTime optional element.

typedef ::onem2m::timestamp creationTime_type
 Element type.
 
typedef ::xsd::cxx::tree::optional< creationTime_typecreationTime_optional
 Element optional container type.
 
typedef ::xsd::cxx::tree::traits< creationTime_type, char > creationTime_traits
 Element traits type.
 
const creationTime_optionalcreationTime () const
 Return a read-only (constant) reference to the element container. More...
 
creationTime_optionalcreationTime ()
 Return a read-write reference to the element container. More...
 
void creationTime (const creationTime_type &x)
 Set the element value. More...
 
void creationTime (const creationTime_optional &x)
 Set the element value. More...
 
void creationTime (::std::unique_ptr< creationTime_type > p)
 Set the element value without copying. More...
 

lastModifiedTime

Accessor and modifier functions for the lastModifiedTime optional element.

typedef ::onem2m::timestamp lastModifiedTime_type
 Element type.
 
typedef ::xsd::cxx::tree::optional< lastModifiedTime_typelastModifiedTime_optional
 Element optional container type.
 
typedef ::xsd::cxx::tree::traits< lastModifiedTime_type, char > lastModifiedTime_traits
 Element traits type.
 
const lastModifiedTime_optionallastModifiedTime () const
 Return a read-only (constant) reference to the element container. More...
 
lastModifiedTime_optionallastModifiedTime ()
 Return a read-write reference to the element container. More...
 
void lastModifiedTime (const lastModifiedTime_type &x)
 Set the element value. More...
 
void lastModifiedTime (const lastModifiedTime_optional &x)
 Set the element value. More...
 
void lastModifiedTime (::std::unique_ptr< lastModifiedTime_type > p)
 Set the element value without copying. More...
 

labels

Accessor and modifier functions for the labels optional element.

typedef ::onem2m::labels labels_type
 Element type.
 
typedef ::xsd::cxx::tree::optional< labels_typelabels_optional
 Element optional container type.
 
typedef ::xsd::cxx::tree::traits< labels_type, char > labels_traits
 Element traits type.
 
const labels_optionallabels () const
 Return a read-only (constant) reference to the element container. More...
 
labels_optionallabels ()
 Return a read-write reference to the element container. More...
 
void labels (const labels_type &x)
 Set the element value. More...
 
void labels (const labels_optional &x)
 Set the element value. More...
 
void labels (::std::unique_ptr< labels_type > p)
 Set the element value without copying. More...
 

resourceName

Accessor and modifier functions for the resourceName optional attribute.

typedef ::onem2m::resourceName resourceName_type
 Attribute type.
 
typedef ::xsd::cxx::tree::optional< resourceName_typeresourceName_optional
 Attribute optional container type.
 
typedef ::xsd::cxx::tree::traits< resourceName_type, char > resourceName_traits
 Attribute traits type.
 
const resourceName_optionalresourceName () const
 Return a read-only (constant) reference to the attribute container. More...
 
resourceName_optionalresourceName ()
 Return a read-write reference to the attribute container. More...
 
void resourceName (const resourceName_type &x)
 Set the attribute value. More...
 
void resourceName (const resourceName_optional &x)
 Set the attribute value. More...
 
void resourceName (::std::unique_ptr< resourceName_type > p)
 Set the attribute value without copying. More...
 

Constructors

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

Detailed Description

Class corresponding to the resource schema type.

Constructor & Destructor Documentation

onem2m::resource::resource ( 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::resource::resource ( const resource 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 resource::creationTime_optional & onem2m::resource::creationTime ( ) const

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

Returns
A constant reference to the optional container.
resource::creationTime_optional & onem2m::resource::creationTime ( )

Return a read-write reference to the element container.

Returns
A reference to the optional container.
void onem2m::resource::creationTime ( const creationTime_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::resource::creationTime ( const creationTime_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::resource::creationTime ( ::std::unique_ptr< creationTime_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 resource::labels_optional & onem2m::resource::labels ( ) const

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

Returns
A constant reference to the optional container.
resource::labels_optional & onem2m::resource::labels ( )

Return a read-write reference to the element container.

Returns
A reference to the optional container.
void onem2m::resource::labels ( const labels_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::resource::labels ( const labels_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::resource::labels ( ::std::unique_ptr< labels_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 resource::lastModifiedTime_optional & onem2m::resource::lastModifiedTime ( ) const

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

Returns
A constant reference to the optional container.
resource::lastModifiedTime_optional & onem2m::resource::lastModifiedTime ( )

Return a read-write reference to the element container.

Returns
A reference to the optional container.
void onem2m::resource::lastModifiedTime ( const lastModifiedTime_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::resource::lastModifiedTime ( const lastModifiedTime_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::resource::lastModifiedTime ( ::std::unique_ptr< lastModifiedTime_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.

resource & onem2m::resource::operator= ( const resource 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 resource::parentID_optional & onem2m::resource::parentID ( ) const

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

Returns
A constant reference to the optional container.
resource::parentID_optional & onem2m::resource::parentID ( )

Return a read-write reference to the element container.

Returns
A reference to the optional container.
void onem2m::resource::parentID ( const parentID_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::resource::parentID ( const parentID_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::resource::parentID ( ::std::unique_ptr< parentID_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 resource::resourceID_optional & onem2m::resource::resourceID ( ) const

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

Returns
A constant reference to the optional container.
resource::resourceID_optional & onem2m::resource::resourceID ( )

Return a read-write reference to the element container.

Returns
A reference to the optional container.
void onem2m::resource::resourceID ( const resourceID_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::resource::resourceID ( const resourceID_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::resource::resourceID ( ::std::unique_ptr< resourceID_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 resource::resourceName_optional & onem2m::resource::resourceName ( ) const

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

Returns
A constant reference to the optional container.
resource::resourceName_optional & onem2m::resource::resourceName ( )

Return a read-write reference to the attribute container.

Returns
A reference to the optional container.
void onem2m::resource::resourceName ( const resourceName_type x)

Set the attribute value.

Parameters
xA new value to set.

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

void onem2m::resource::resourceName ( const resourceName_optional x)

Set the attribute 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 attribute. Otherwise the attribute container is set the 'not present' state.

void onem2m::resource::resourceName ( ::std::unique_ptr< resourceName_type p)

Set the attribute 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 resource::resourceType_optional & onem2m::resource::resourceType ( ) const

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

Returns
A constant reference to the optional container.
resource::resourceType_optional & onem2m::resource::resourceType ( )

Return a read-write reference to the element container.

Returns
A reference to the optional container.
void onem2m::resource::resourceType ( const resourceType_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::resource::resourceType ( const resourceType_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::resource::resourceType ( ::std::unique_ptr< resourceType_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: