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

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

Public Member Functions

 notification ()
 Create an instance from the ultimate base and initializers for required elements and attributes.
 
 notification (const ::xercesc::DOMElement &e,::xml_schema::flags f=0,::xml_schema::container *c=0)
 Create an instance from a DOM element. More...
 
 notification (const notification &x,::xml_schema::flags f=0,::xml_schema::container *c=0)
 Copy constructor. More...
 
::xml_schema::typegetRepresentationObject (::xml_schema::integer &rot) const
 Get the object in the "representation" parameter of the notification (if any). More...
 
- Public Member Functions inherited from onem2m::notificationBase
virtual ~notificationBase ()
 Destructor.
 
const notificationEvent_optionalnotificationEvent () const
 Return a read-only (constant) reference to the element container. More...
 
notificationEvent_optionalnotificationEvent ()
 Return a read-write reference to the element container. More...
 
void notificationEvent (const notificationEvent_type &x)
 Set the element value. More...
 
void notificationEvent (const notificationEvent_optional &x)
 Set the element value. More...
 
void notificationEvent (::std::unique_ptr< notificationEvent_type > p)
 Set the element value without copying. More...
 
const verificationRequest_optionalverificationRequest () const
 Return a read-only (constant) reference to the element container. More...
 
verificationRequest_optionalverificationRequest ()
 Return a read-write reference to the element container. More...
 
void verificationRequest (const verificationRequest_type &x)
 Set the element value. More...
 
void verificationRequest (const verificationRequest_optional &x)
 Set the element value. More...
 
const subscriptionDeletion_optionalsubscriptionDeletion () const
 Return a read-only (constant) reference to the element container. More...
 
subscriptionDeletion_optionalsubscriptionDeletion ()
 Return a read-write reference to the element container. More...
 
void subscriptionDeletion (const subscriptionDeletion_type &x)
 Set the element value. More...
 
void subscriptionDeletion (const subscriptionDeletion_optional &x)
 Set the element value. More...
 
const subscriptionReference_optionalsubscriptionReference () const
 Return a read-only (constant) reference to the element container. More...
 
subscriptionReference_optionalsubscriptionReference ()
 Return a read-write reference to the element container. More...
 
void subscriptionReference (const subscriptionReference_type &x)
 Set the element value. More...
 
void subscriptionReference (const subscriptionReference_optional &x)
 Set the element value. More...
 
void subscriptionReference (::std::unique_ptr< subscriptionReference_type > p)
 Set the element value without copying. 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 notificationForwardingURI_optionalnotificationForwardingURI () const
 Return a read-only (constant) reference to the element container. More...
 
notificationForwardingURI_optionalnotificationForwardingURI ()
 Return a read-write reference to the element container. More...
 
void notificationForwardingURI (const notificationForwardingURI_type &x)
 Set the element value. More...
 
void notificationForwardingURI (const notificationForwardingURI_optional &x)
 Set the element value. More...
 
void notificationForwardingURI (::std::unique_ptr< notificationForwardingURI_type > p)
 Set the element value without copying. More...
 
 notificationBase ()
 Create an instance from the ultimate base and initializers for required elements and attributes.
 
 notificationBase (const ::xercesc::DOMElement &e,::xml_schema::flags f=0,::xml_schema::container *c=0)
 Create an instance from a DOM element. More...
 
 notificationBase (const notificationBase &x,::xml_schema::flags f=0,::xml_schema::container *c=0)
 Copy constructor. More...
 
notificationBaseoperator= (const notificationBase &x)
 Copy assignment operator. More...
 

Additional Inherited Members

- Public Types inherited from onem2m::notificationBase
typedef ::onem2m::notificationEvent notificationEvent_type
 Element type.
 
typedef ::xsd::cxx::tree::optional< notificationEvent_typenotificationEvent_optional
 Element optional container type.
 
typedef ::xsd::cxx::tree::traits< notificationEvent_type, char > notificationEvent_traits
 Element traits type.
 
typedef ::xml_schema::boolean verificationRequest_type
 Element type.
 
typedef ::xsd::cxx::tree::optional< verificationRequest_typeverificationRequest_optional
 Element optional container type.
 
typedef ::xsd::cxx::tree::traits< verificationRequest_type, char > verificationRequest_traits
 Element traits type.
 
typedef ::xml_schema::boolean subscriptionDeletion_type
 Element type.
 
typedef ::xsd::cxx::tree::optional< subscriptionDeletion_typesubscriptionDeletion_optional
 Element optional container type.
 
typedef ::xsd::cxx::tree::traits< subscriptionDeletion_type, char > subscriptionDeletion_traits
 Element traits type.
 
typedef ::xml_schema::uri subscriptionReference_type
 Element type.
 
typedef ::xsd::cxx::tree::optional< subscriptionReference_typesubscriptionReference_optional
 Element optional container type.
 
typedef ::xsd::cxx::tree::traits< subscriptionReference_type, char > subscriptionReference_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 notificationForwardingURI_type
 Element type.
 
typedef ::xsd::cxx::tree::optional< notificationForwardingURI_typenotificationForwardingURI_optional
 Element optional container type.
 
typedef ::xsd::cxx::tree::traits< notificationForwardingURI_type, char > notificationForwardingURI_traits
 Element traits type.
 

Detailed Description

Class corresponding to the notification schema type.

Note that the special method getRepresentationObject to get the the object that can represent the resource that caused the notification.

Most of the methods are contained in the notificationBase parent class.

Constructor & Destructor Documentation

onem2m::notification::notification ( 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::notification::notification ( const notification 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

::xml_schema::type* onem2m::notification::getRepresentationObject ( ::xml_schema::integer rot) const

Get the object in the "representation" parameter of the notification (if any).

Parameters
rotVariable which will be updated to show the type of the object.
Returns
A pointer to the object.

If the function returns with rot==0 (resourceTypeUnknown) the value of the pointer is undefined. Else, rot will indicate the onem2mResourceType and the method will return a pointer to an object of the corresponding type. Ownership of the object is retained by the parent notification object and will automatically be destroyed when the parent notification object is deleted.


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