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 *name, const OSUTF8CHAR *value)
 This constructor initializes the element to contain the given data values.

 OSAnyElementClass (const char *name, const char *value)
 This constructor initializes the element to contain the given data values.

 OSAnyElementClass (OSUTF8CHAR *name, OSUTF8CHAR *value, 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 *name, const OSUTF8CHAR *value)
 This method copies the given element value to the internal string storage variable.

void print (const char *name)
 This method prints the given element value to standard output.

void setValue (const OSUTF8CHAR *name, const OSUTF8CHAR *value)
 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 *  name,
const OSUTF8CHAR *  value
 

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

Parameters:
name - element name
value - element contents

OSAnyElementClass::OSAnyElementClass const char *  name,
const char *  value
 

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:
name - element name
value - element contents

OSAnyElementClass::OSAnyElementClass OSUTF8CHAR *  name,
OSUTF8CHAR *  value,
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:
name - Element name.
value - 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 *  name,
const OSUTF8CHAR *  value
 

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:
name - Element name.
value - Element value.

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

This method prints the given element value to standard output.

Parameters:
name - Name of generated string variable.

Definition at line 125 of file rtxCppAnyElement.h.

References rtxPrintNVP().

void OSAnyElementClass::setValue const OSUTF8CHAR *  name,
const OSUTF8CHAR *  value
 

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:
name - Element name.
value - Element value.


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

This file was last modified on 1 Jun 2004.
XBinder, Version 1.0.0