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

Enumeration class corresponding to the permittedMediaTypes schema type. More...

Public Types

enum  value { application_xml, application_json, application_cbor }
 Underlying enum type.
 

Public Member Functions

 permittedMediaTypes (value v)
 Create an instance from the underlying enum value. More...
 
 permittedMediaTypes (const char *v)
 Create an instance from a C string. More...
 
 permittedMediaTypes (const ::std::string &v)
 Create an instance from a string. More...
 
 permittedMediaTypes (const ::onem2m::typeOfContent &v)
 Create an instance from the base value. More...
 
 permittedMediaTypes (const ::xercesc::DOMElement &e,::xml_schema::flags f=0,::xml_schema::container *c=0)
 Create an instance from a DOM element. More...
 
 permittedMediaTypes (const ::xercesc::DOMAttr &a,::xml_schema::flags f=0,::xml_schema::container *c=0)
 Create an instance from a DOM attribute. More...
 
 permittedMediaTypes (const ::std::string &s, const ::xercesc::DOMElement *e,::xml_schema::flags f=0,::xml_schema::container *c=0)
 Create an instance from a string fragment. More...
 
 permittedMediaTypes (const permittedMediaTypes &x,::xml_schema::flags f=0,::xml_schema::container *c=0)
 Copy constructor. More...
 
virtual operator value () const
 Implicit conversion operator to the underlying enum value. More...
 
permittedMediaTypesoperator= (value v)
 Assign the underlying enum value. More...
 
- Public Member Functions inherited from onem2m::typeOfContent
virtual ~typeOfContent ()
 Destructor.
 
 typeOfContent ()
 Create an instance from initializers for required elements and attributes.
 
 typeOfContent (const char *)
 Create an instance from a C string and initializers for required elements and attributes.
 
 typeOfContent (const ::std::string &)
 Create an instance from a string andinitializers for required elements and attributes.
 
 typeOfContent (const ::xml_schema::string &)
 Create an instance from the ultimate base and initializers for required elements and attributes.
 
 typeOfContent (const ::xercesc::DOMElement &e,::xml_schema::flags f=0,::xml_schema::container *c=0)
 Create an instance from a DOM element. More...
 
 typeOfContent (const ::xercesc::DOMAttr &a,::xml_schema::flags f=0,::xml_schema::container *c=0)
 Create an instance from a DOM attribute. More...
 
 typeOfContent (const ::std::string &s, const ::xercesc::DOMElement *e,::xml_schema::flags f=0,::xml_schema::container *c=0)
 Create an instance from a string fragment. More...
 
 typeOfContent (const typeOfContent &x,::xml_schema::flags f=0,::xml_schema::container *c=0)
 Copy constructor. More...
 

Detailed Description

Enumeration class corresponding to the permittedMediaTypes schema type.

Constructor & Destructor Documentation

onem2m::permittedMediaTypes::permittedMediaTypes ( value  v)

Create an instance from the underlying enum value.

Parameters
vA enum value.
onem2m::permittedMediaTypes::permittedMediaTypes ( const char *  v)

Create an instance from a C string.

Parameters
vA string value.
onem2m::permittedMediaTypes::permittedMediaTypes ( const ::std::string &  v)

Create an instance from a string.

Parameters
vA string value.
onem2m::permittedMediaTypes::permittedMediaTypes ( const ::onem2m::typeOfContent v)

Create an instance from the base value.

Parameters
vA base value.
onem2m::permittedMediaTypes::permittedMediaTypes ( 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::permittedMediaTypes::permittedMediaTypes ( const ::xercesc::DOMAttr &  a,
::xml_schema::flags  f = 0,
::xml_schema::container c = 0 
)

Create an instance from a DOM attribute.

Parameters
aA DOM attribute to extract the data from.
fFlags to create the new instance with.
cA pointer to the object that will contain the new instance.
onem2m::permittedMediaTypes::permittedMediaTypes ( const ::std::string &  s,
const ::xercesc::DOMElement *  e,
::xml_schema::flags  f = 0,
::xml_schema::container c = 0 
)

Create an instance from a string fragment.

Parameters
sA string fragment to extract the data from.
eA pointer to DOM element containing the string fragment.
fFlags to create the new instance with.
cA pointer to the object that will contain the new instance.
onem2m::permittedMediaTypes::permittedMediaTypes ( const permittedMediaTypes 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

virtual onem2m::permittedMediaTypes::operator value ( ) const
inlinevirtual

Implicit conversion operator to the underlying enum value.

Returns
A enum value.
permittedMediaTypes & onem2m::permittedMediaTypes::operator= ( value  v)

Assign the underlying enum value.

Parameters
vA enum value.
Returns
A refernce to the instance.

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