OS-IoT
Public Member Functions | List of all members
hd::binarySwitch Class Reference

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

Public Member Functions

virtual ~binarySwitch ()
 Destructor.
 
- Public Member Functions inherited from onem2m::flexContainerResource
virtual ~flexContainerResource ()
 Destructor.
 
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...
 
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...
 
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...
 
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...
 
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...
 
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...
 
const accessControlPolicyIDs_optionalaccessControlPolicyIDs () const
 Return a read-only (constant) reference to the element container. More...
 
accessControlPolicyIDs_optionalaccessControlPolicyIDs ()
 Return a read-write reference to the element container. More...
 
void accessControlPolicyIDs (const accessControlPolicyIDs_type &x)
 Set the element value. More...
 
void accessControlPolicyIDs (const accessControlPolicyIDs_optional &x)
 Set the element value. More...
 
void accessControlPolicyIDs (::std::unique_ptr< accessControlPolicyIDs_type > p)
 Set the element value without copying. More...
 
const expirationTime_optionalexpirationTime () const
 Return a read-only (constant) reference to the element container. More...
 
expirationTime_optionalexpirationTime ()
 Return a read-write reference to the element container. More...
 
void expirationTime (const expirationTime_type &x)
 Set the element value. More...
 
void expirationTime (const expirationTime_optional &x)
 Set the element value. More...
 
void expirationTime (::std::unique_ptr< expirationTime_type > p)
 Set the element value without copying. More...
 
const dynamicAuthorizationConsultationIDs_optionaldynamicAuthorizationConsultationIDs () const
 Return a read-only (constant) reference to the element container. More...
 
dynamicAuthorizationConsultationIDs_optionaldynamicAuthorizationConsultationIDs ()
 Return a read-write reference to the element container. More...
 
void dynamicAuthorizationConsultationIDs (const dynamicAuthorizationConsultationIDs_type &x)
 Set the element value. More...
 
void dynamicAuthorizationConsultationIDs (const dynamicAuthorizationConsultationIDs_optional &x)
 Set the element value. More...
 
void dynamicAuthorizationConsultationIDs (::std::unique_ptr< dynamicAuthorizationConsultationIDs_type > p)
 Set the element value without copying. More...
 
const announceTo_optionalannounceTo () const
 Return a read-only (constant) reference to the element container. More...
 
announceTo_optionalannounceTo ()
 Return a read-write reference to the element container. More...
 
void announceTo (const announceTo_type &x)
 Set the element value. More...
 
void announceTo (const announceTo_optional &x)
 Set the element value. More...
 
void announceTo (::std::unique_ptr< announceTo_type > p)
 Set the element value without copying. More...
 
const announcedAttribute_optionalannouncedAttribute () const
 Return a read-only (constant) reference to the element container. More...
 
announcedAttribute_optionalannouncedAttribute ()
 Return a read-write reference to the element container. More...
 
void announcedAttribute (const announcedAttribute_type &x)
 Set the element value. More...
 
void announcedAttribute (const announcedAttribute_optional &x)
 Set the element value. More...
 
void announcedAttribute (::std::unique_ptr< announcedAttribute_type > p)
 Set the element value without copying. More...
 
const stateTag_optionalstateTag () const
 Return a read-only (constant) reference to the element container. More...
 
stateTag_optionalstateTag ()
 Return a read-write reference to the element container. More...
 
void stateTag (const stateTag_type &x)
 Set the element value. More...
 
void stateTag (const stateTag_optional &x)
 Set the element value. More...
 
const creator_optionalcreator () const
 Return a read-only (constant) reference to the element container. More...
 
creator_optionalcreator ()
 Return a read-write reference to the element container. More...
 
void creator (const creator_type &x)
 Set the element value. More...
 
void creator (const creator_optional &x)
 Set the element value. More...
 
void creator (::std::unique_ptr< creator_type > p)
 Set the element value without copying. More...
 
const containerDefinition_optionalcontainerDefinition () const
 Return a read-only (constant) reference to the element container. More...
 
containerDefinition_optionalcontainerDefinition ()
 Return a read-write reference to the element container. More...
 
void containerDefinition (const containerDefinition_type &x)
 Set the element value. More...
 
void containerDefinition (const containerDefinition_optional &x)
 Set the element value. More...
 
void containerDefinition (::std::unique_ptr< containerDefinition_type > p)
 Set the element value without copying. More...
 
const ontologyRef_optionalontologyRef () const
 Return a read-only (constant) reference to the element container. More...
 
ontologyRef_optionalontologyRef ()
 Return a read-write reference to the element container. More...
 
void ontologyRef (const ontologyRef_type &x)
 Set the element value. More...
 
void ontologyRef (const ontologyRef_optional &x)
 Set the element value. More...
 
void ontologyRef (::std::unique_ptr< ontologyRef_type > p)
 Set the element value without copying. More...
 
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...
 
 flexContainerResource ()
 Create an instance from the ultimate base and initializers for required elements and attributes.
 
 flexContainerResource (const ::xercesc::DOMElement &e,::xml_schema::flags f=0,::xml_schema::container *c=0)
 Create an instance from a DOM element. More...
 
 flexContainerResource (const flexContainerResource &x,::xml_schema::flags f=0,::xml_schema::container *c=0)
 Copy constructor. More...
 
flexContainerResourceoperator= (const flexContainerResource &x)
 Copy assignment operator. More...
 

powerState

Accessor and modifier functions for the powerState optional element.

typedef ::xml_schema::boolean powerState_type
 Element type.
 
typedef ::xsd::cxx::tree::optional< powerState_typepowerState_optional
 Element optional container type.
 
typedef ::xsd::cxx::tree::traits< powerState_type, char > powerState_traits
 Element traits type.
 
const powerState_optionalpowerState () const
 Return a read-only (constant) reference to the element container. More...
 
powerState_optionalpowerState ()
 Return a read-write reference to the element container. More...
 
void powerState (const powerState_type &x)
 Set the element value. More...
 
void powerState (const powerState_optional &x)
 Set the element value. More...
 

Constructors

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

Additional Inherited Members

- Public Types inherited from onem2m::flexContainerResource
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
typedef ::onem2m::acpType accessControlPolicyIDs_type
 Element type.
 
typedef ::xsd::cxx::tree::optional< accessControlPolicyIDs_typeaccessControlPolicyIDs_optional
 Element optional container type.
 
typedef ::xsd::cxx::tree::traits< accessControlPolicyIDs_type, char > accessControlPolicyIDs_traits
 Element traits type.
 
typedef ::onem2m::timestamp expirationTime_type
 Element type.
 
typedef ::xsd::cxx::tree::optional< expirationTime_typeexpirationTime_optional
 Element optional container type.
 
typedef ::xsd::cxx::tree::traits< expirationTime_type, char > expirationTime_traits
 Element traits type.
 
typedef ::onem2m::listOfURIs dynamicAuthorizationConsultationIDs_type
 Element type.
 
typedef ::xsd::cxx::tree::optional< dynamicAuthorizationConsultationIDs_typedynamicAuthorizationConsultationIDs_optional
 Element optional container type.
 
typedef ::xsd::cxx::tree::traits< dynamicAuthorizationConsultationIDs_type, char > dynamicAuthorizationConsultationIDs_traits
 Element traits type.
 
typedef ::onem2m::listOfURIs announceTo_type
 Element type.
 
typedef ::xsd::cxx::tree::optional< announceTo_typeannounceTo_optional
 Element optional container type.
 
typedef ::xsd::cxx::tree::traits< announceTo_type, char > announceTo_traits
 Element traits type.
 
typedef ::onem2m::listOfNCNames announcedAttribute_type
 Element type.
 
typedef ::xsd::cxx::tree::optional< announcedAttribute_typeannouncedAttribute_optional
 Element optional container type.
 
typedef ::xsd::cxx::tree::traits< announcedAttribute_type, char > announcedAttribute_traits
 Element traits type.
 
typedef ::xml_schema::non_negative_integer stateTag_type
 Element type.
 
typedef ::xsd::cxx::tree::optional< stateTag_typestateTag_optional
 Element optional container type.
 
typedef ::xsd::cxx::tree::traits< stateTag_type, char > stateTag_traits
 Element traits type.
 
typedef ::onem2m::ID creator_type
 Element type.
 
typedef ::xsd::cxx::tree::optional< creator_typecreator_optional
 Element optional container type.
 
typedef ::xsd::cxx::tree::traits< creator_type, char > creator_traits
 Element traits type.
 
typedef ::xml_schema::uri containerDefinition_type
 Element type.
 
typedef ::xsd::cxx::tree::optional< containerDefinition_typecontainerDefinition_optional
 Element optional container type.
 
typedef ::xsd::cxx::tree::traits< containerDefinition_type, char > containerDefinition_traits
 Element traits type.
 
typedef ::xml_schema::uri ontologyRef_type
 Element type.
 
typedef ::xsd::cxx::tree::optional< ontologyRef_typeontologyRef_optional
 Element optional container type.
 
typedef ::xsd::cxx::tree::traits< ontologyRef_type, char > ontologyRef_traits
 Element traits type.
 
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.
 

Detailed Description

Class corresponding to the binarySwitch schema type.

Constructor & Destructor Documentation

hd::binarySwitch::binarySwitch ( 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.
hd::binarySwitch::binarySwitch ( const binarySwitch 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

binarySwitch & hd::binarySwitch::operator= ( const binarySwitch 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 binarySwitch::powerState_optional & hd::binarySwitch::powerState ( ) const

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

Returns
A constant reference to the optional container.
binarySwitch::powerState_optional & hd::binarySwitch::powerState ( )

Return a read-write reference to the element container.

Returns
A reference to the optional container.
void hd::binarySwitch::powerState ( const powerState_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 hd::binarySwitch::powerState ( const powerState_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.


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