Objective Systems, Inc.  
Home
About ASN.1
Products
Free Software
Documents
Services
Resources
Resellers
Customers
Careers
About Us
Contact Us
 

Google


Objective Systems, Inc.

OSAnyElementClass Class Reference

Any element. More...

#include <rtxCppAnyElement.h>

Inheritance diagram for OSAnyElementClass:

OSBaseType List of all members.

Public Member Functions

 OSAnyElementClass ()
 The default constructor creates an empty element.
 OSAnyElementClass (OSBOOL ownMemory)
 This constructor creates an empty element.
 OSAnyElementClass (const OSUTF8CHAR *pname, const OSUTF8CHAR *pvalue)
 This constructor initializes the element to contain the given data values.
 OSAnyElementClass (const char *pname, const char *pvalue)
 This constructor initializes the element to contain the given data values.
 OSAnyElementClass (OSUTF8CHAR *pname, OSUTF8CHAR *pvalue, OSBOOL ownMemory=FALSE)
 This constructor initializes the element to contain the given data values.
 OSAnyElementClass (OSAnyElement &os)
 This copy constructor initializes the element to contain the given data values from the C data structure.
 OSAnyElementClass (const OSAnyElementClass &os)
 This copy constructor initializes the element to contain the given data values from the C++ data object.
virtual ~OSAnyElementClass ()
 The destructor frees string memory if the memory ownership flag is set.
void copyValue (const OSUTF8CHAR *pname, const OSUTF8CHAR *pvalue)
 This method copies the given element value to the internal string storage variable.
void print (const char *pname)
 This method prints the given element value to standard output.
void setValue (const OSUTF8CHAR *pname, const OSUTF8CHAR *pvalue)
 This method sets the element value to the given name/value.

Detailed Description

Any element.

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

Definition at line 39 of file rtxCppAnyElement.h.


Constructor & Destructor Documentation

OSAnyElementClass::OSAnyElementClass OSBOOL  ownMemory  ) 
 

This constructor creates an empty element.

It allows the caller to transfer ownership of the future string memory to the class instance.

Parameters:
ownMemory - Transfer ownership of memory to object.

OSAnyElementClass::OSAnyElementClass const OSUTF8CHAR *  pname,
const OSUTF8CHAR *  pvalue
 

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

Parameters:
pname - element name
pvalue - element contents

OSAnyElementClass::OSAnyElementClass const char *  pname,
const char *  pvalue
 

This constructor initializes the element 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 - element name
pvalue - element contents

OSAnyElementClass::OSAnyElementClass OSUTF8CHAR *  pname,
OSUTF8CHAR *  pvalue,
OSBOOL  ownMemory = FALSE
 

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

It allows the caller to transfer ownership of the string memory to the class instance.

Parameters:
pname - Element name.
pvalue - Element value.
ownMemory - Transfer ownership of memory to object.

OSAnyElementClass::OSAnyElementClass OSAnyElement &  os  ) 
 

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

Parameters:
os - C binary string structure.

OSAnyElementClass::OSAnyElementClass const OSAnyElementClass os  ) 
 

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

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


Member Function Documentation

void OSAnyElementClass::copyValue const OSUTF8CHAR *  pname,
const OSUTF8CHAR *  pvalue
 

This method copies the given element 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 - Element name.
pvalue - Element value.

void OSAnyElementClass::print const char *  pname  )  [inline]
 

This method prints the given element value to standard output.

Parameters:
pname - Name of generated string variable.

Definition at line 125 of file rtxCppAnyElement.h.

void OSAnyElementClass::setValue const OSUTF8CHAR *  pname,
const OSUTF8CHAR *  pvalue
 

This method sets the element 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 - Element name.
pvalue - Element value.


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

This file was last modified on 8 Jan 2007.
XBinder, Version 1.1.9