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

Google


Objective Systems, Inc.

OSDynOctStrClass Class Reference

Dynamic binary string. More...

#include <rtxCppDynOctStr.h>

Inheritance diagram for OSDynOctStrClass:

OSBaseType List of all members.

Public Member Functions

 OSDynOctStrClass ()
 The default constructor creates an empty binary string.
 OSDynOctStrClass (OSBOOL ownMemory)
 This constructor creates an empty binary string.
 OSDynOctStrClass (OSUINT32 numocts_, const OSOCTET *data_)
 This constructor initializes the binary string to contain the given data values.
 OSDynOctStrClass (OSUINT32 numocts_, OSOCTET *data_, OSBOOL ownMemory=FALSE)
 This constructor initializes the binary string to contain the given data values.
 OSDynOctStrClass (OSDynOctStr &os)
 The copy constructor initializes the binary string to contain the given data values from the C data structure.
 OSDynOctStrClass (const OSDynOctStrClass &os)
 This copy constructor initializes the binary string to contain the given data values from the C++ data object.
virtual ~OSDynOctStrClass ()
 The destructor frees string memory if the memory ownership flag is set.
void copyValue (OSUINT32 numocts_, const OSOCTET *data_)
 This method copies the given binary string value to the internal string storage variable.
void setValue (OSUINT32 numocts_, const OSOCTET *data_)
 This method sets the binary string value to the given string.

Detailed Description

Dynamic binary string.

This is the base class for generated C++ data type classes for XSD binary types (hexBinary and base64Binary).

Definition at line 38 of file rtxCppDynOctStr.h.


Constructor & Destructor Documentation

OSDynOctStrClass::OSDynOctStrClass OSBOOL  ownMemory  ) 
 

This constructor creates an empty binary string.

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

Parameters:
ownMemory - Transfer ownership of memory to object.

OSDynOctStrClass::OSDynOctStrClass OSUINT32  numocts_,
const OSOCTET *  data_
 

This constructor initializes the binary string to contain the given data values.

Parameters:
numocts_ - Number of bytes in the binary string.
data_ - The binary string data values.

OSDynOctStrClass::OSDynOctStrClass OSUINT32  numocts_,
OSOCTET *  data_,
OSBOOL  ownMemory = FALSE
 

This constructor initializes the binary string to contain the given data values.

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

Parameters:
numocts_ - Number of bytes in the binary string.
data_ - The binary string data values.
ownMemory - Transfer ownership of memory to object.

OSDynOctStrClass::OSDynOctStrClass OSDynOctStr &  os  ) 
 

The copy constructor initializes the binary string to contain the given data values from the C data structure.

Parameters:
os - C binary string structure.

OSDynOctStrClass::OSDynOctStrClass const OSDynOctStrClass os  ) 
 

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

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


Member Function Documentation

void OSDynOctStrClass::copyValue OSUINT32  numocts_,
const OSOCTET *  data_
 

This method copies the given binary string 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:
numocts_ - Number of bytes in the binary string.
data_ - The binary string data values.

void OSDynOctStrClass::setValue OSUINT32  numocts_,
const OSOCTET *  data_
 

This method sets the binary string value to the given string.

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

Parameters:
numocts_ - Number of bytes in the binary string.
data_ - The binary string data values.


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