OSXMLStringList Class Reference

XML list string. More...

#include <rtxCppXmlStringList.h>

Inheritance diagram for OSXMLStringList:
OSRTBaseType

List of all members.

Public Member Functions

 OSXMLStringList ()
 The default constructor creates an empty list.
 OSXMLStringList (const OSXMLStringList &orig)
 The copy constructor creates a deep-copy of the original list.
OSXMLStringListoperator= (const OSXMLStringList &orig)
 The assignment operator frees the existing list and then makes a deep-copy of the original list.
void append (OSXMLStringClass *pdata)
 The append method adds the given object to the end of the list.
void appendCopy (OSXMLStringClass *pdata)
 The appendCopy method adds a copy of the given object to the end of the list.
virtual OSRTBaseTypeclone () const
 The clone method makes a cloned copy of this object.
OSXMLStringClassgetItem (int idx)
 The getItem method returns a pointer to the indexed item in the list or NULL if the index in out-of-range.

Public Attributes

OSRTObjListClass mElemList
 List of OSXMLStringClass objects.

Detailed Description

XML list string.

This is the base class for generated C++ data type classes for repeating occurences of XSD string types (string, token, NMTOKEN, etc.).

Definition at line 39 of file rtxCppXmlStringList.h.


Constructor & Destructor Documentation

OSXMLStringList::OSXMLStringList ( const OSXMLStringList orig  ) 

The copy constructor creates a deep-copy of the original list.

Parameters:
orig Object to be copied.

Member Function Documentation

void OSXMLStringList::append ( OSXMLStringClass pdata  ) 

The append method adds the given object to the end of the list.

The pointer is assigned directly (i.e. a deep-copy is not made).

Parameters:
pdata Pointer to object to be appended.
void OSXMLStringList::appendCopy ( OSXMLStringClass pdata  ) 

The appendCopy method adds a copy of the given object to the end of the list.

In this case, a deep-copy of the given object is made before appending it to the list.

Parameters:
pdata Pointer to object to be appended.
virtual OSRTBaseType* OSXMLStringList::clone (  )  const [virtual]

The clone method makes a cloned copy of this object.

It may be used to create a copy of any object derived from this base class.

Reimplemented from OSRTBaseType.

OSXMLStringList& OSXMLStringList::operator= ( const OSXMLStringList orig  ) 

The assignment operator frees the existing list and then makes a deep-copy of the original list.

Parameters:
orig Object to be assigned.

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