OSAnyAttrClass Class Reference

Any attribute. More...

#include <rtxCppAnyAttr.h>

Inheritance diagram for OSAnyAttrClass:

OSRTBaseType

List of all members.


Public Member Functions

 OSAnyAttrClass ()
 The default constructor creates an empty attribute.
 OSAnyAttrClass (const OSUTF8CHAR *pname, const OSUTF8CHAR *pvalue)
 This constructor initializes the attribute to contain the given data values.
 OSAnyAttrClass (const char *pname, const char *pvalue)
 This constructor initializes the attribute to contain the given data values.
 OSAnyAttrClass (OSUTF8CHAR *pname, OSUTF8CHAR *pvalue)
 This constructor initializes the attribute to contain the given data values.
 OSAnyAttrClass (OSAnyAttr &os)
 This copy constructor initializes the attribute to contain the given data values from the C data structure.
 OSAnyAttrClass (const OSAnyAttrClass &os)
 This copy constructor initializes the attribute to contain the given data values from the C++ data object.
virtual ~OSAnyAttrClass ()
 The destructor frees string memory.
OSRTBaseTypeclone () const
 Clone method.
void copyValue (const OSUTF8CHAR *pname, const OSUTF8CHAR *pvalue)
 This method copies the given attribute value to the internal string storage variable.
void setValue (const OSUTF8CHAR *pname, const OSUTF8CHAR *pvalue)
 This method sets the attribute value to the given name/value.
void setValue (const OSUTF8CHAR *pname, const OSUTF8CHAR *pvalue, size_t namebytes, size_t valuebytes=0)
 This method sets the attribute value to the given name/value.
OSAnyAttrClassoperator= (const OSAnyAttrClass &original)
 Assignment operator.

Detailed Description

Any attribute.

This is the base class for generated C++ data type classes for any attribute declarations (xsd:anyAttr).

Definition at line 40 of file rtxCppAnyAttr.h.


Constructor & Destructor Documentation

OSAnyAttrClass::OSAnyAttrClass ( const OSUTF8CHAR *  pname,
const OSUTF8CHAR *  pvalue 
)

This constructor initializes the attribute to contain the given data values.

Parameters:
pname - attribute name
pvalue - attribute contents

OSAnyAttrClass::OSAnyAttrClass ( const char *  pname,
const char *  pvalue 
)

This constructor initializes the attribute to contain the given data values.

This version allows the name/value arguments to be passed as standard C character string literal values.

Parameters:
pname - attribute name
pvalue - attribute contents

OSAnyAttrClass::OSAnyAttrClass ( OSUTF8CHAR *  pname,
OSUTF8CHAR *  pvalue 
)

This constructor initializes the attribute to contain the given data values.

Parameters:
pname - Attribute name.
pvalue - Attribute value.

OSAnyAttrClass::OSAnyAttrClass ( OSAnyAttr &  os  ) 

This copy constructor initializes the attribute to contain the given data values from the C data structure.

It performs a deep copy.

Parameters:
os - C binary string structure.

OSAnyAttrClass::OSAnyAttrClass ( const OSAnyAttrClass os  ) 

This copy constructor initializes the attribute to contain the given data values from the C++ data object.

It performs a deep copy.

Parameters:
os - C++ binary string object reference.


Member Function Documentation

OSRTBaseType* OSAnyAttrClass::clone (  )  const [inline, virtual]

Clone method.

Creates a copied instance and returns pointer to OSRTBaseType.

Reimplemented from OSRTBaseType.

Definition at line 107 of file rtxCppAnyAttr.h.

void OSAnyAttrClass::copyValue ( const OSUTF8CHAR *  pname,
const OSUTF8CHAR *  pvalue 
)

This method copies the given attribute value to the internal string storage variable.

A deep-copy of the given value is done; the class will delete this memory when the object is deleted.

Parameters:
pname - Attribute name.
pvalue - Attribute value.

void OSAnyAttrClass::setValue ( const OSUTF8CHAR *  pname,
const OSUTF8CHAR *  pvalue 
)

This method sets the attribute value to the given name/value.

A deep-copy of the given value is not done; the pointer is stored directly in the class member variable.

Parameters:
pname - Attribute name.
pvalue - Attribute value.

void OSAnyAttrClass::setValue ( const OSUTF8CHAR *  pname,
const OSUTF8CHAR *  pvalue,
size_t  namebytes,
size_t  valuebytes = 0 
)

This method sets the attribute value to the given name/value.

A deep-copy of the given value is not done; the pointer is stored directly in the class member variable.

Parameters:
pname - Attribute name.
pvalue - Attribute value.
namebytes - Attribute name length.
valuebytes - Attribute value length.


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