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

Google


Objective Systems, Inc.

OSAnyAttrClass Class Reference

Any attribute. More...

#include <rtxCppAnyAttr.h>

Inheritance diagram for OSAnyAttrClass:

OSBaseType List of all members.

Public Member Functions

 OSAnyAttrClass ()
 The default constructor creates an empty attribute.
 OSAnyAttrClass (OSBOOL ownMemory)
 This 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, OSBOOL ownMemory=FALSE)
 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 if the memory ownership flag is set.
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.

Detailed Description

Any attribute.

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

Definition at line 38 of file rtxCppAnyAttr.h.


Constructor & Destructor Documentation

OSAnyAttrClass::OSAnyAttrClass OSBOOL  ownMemory  ) 
 

This constructor creates an empty attribute.

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

Parameters:
ownMemory - Transfer ownership of memory to object.

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,
OSBOOL  ownMemory = FALSE
 

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

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

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

OSAnyAttrClass::OSAnyAttrClass OSAnyAttr &  os  ) 
 

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

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.

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


Member Function Documentation

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.


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