CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

StrX Class Reference

#include <StrX.h>

List of all members.

Public Types

typedef
XERCES_CPP_NAMESPACE::XMLString 
XMLString
typedef
XERCES_CPP_NAMESPACE::XMLString 
XMLString

Public Member Functions

const char * localForm () const
const char * localForm () const
 StrX (const XMLCh *const toTranscode)
 StrX (const XMLCh *const toTranscode)
 StrX (const char *const toTranscode)
 StrX (const std::string &toTranscode)
const XMLCh * xmlChForm () const
 ~StrX ()
 ~StrX ()

Private Attributes

char * fLocalForm
XMLCh * fXMLChForm

Detailed Description

Author:
Apache Xerces C++ Example

DDDParser sub-component of DDD

This is taken from the Examples of Apache Xerces C++ and modified.

Definition at line 32 of file StrX.h.


Member Typedef Documentation

typedef XERCES_CPP_NAMESPACE::XMLString StrX::XMLString

Definition at line 35 of file StrX.h.

typedef XERCES_CPP_NAMESPACE::XMLString StrX::XMLString

Definition at line 14 of file StrX.h.


Constructor & Destructor Documentation

StrX::StrX ( const XMLCh *const  toTranscode) [inline]

Definition at line 39 of file StrX.h.

References fLocalForm, and fXMLChForm.

    {
      fLocalForm = XMLString::transcode(toTranscode);
      fXMLChForm = XMLString::transcode(fLocalForm);
    }
StrX::StrX ( const char *const  toTranscode) [inline]

Definition at line 45 of file StrX.h.

References fLocalForm, and fXMLChForm.

    {
      fXMLChForm = XMLString::transcode(toTranscode);
      fLocalForm = XMLString::transcode(fXMLChForm);
    }
StrX::StrX ( const std::string &  toTranscode) [inline]

Definition at line 51 of file StrX.h.

References fLocalForm, and fXMLChForm.

    {
      fXMLChForm = XMLString::transcode(toTranscode.c_str());
      fLocalForm = XMLString::transcode(fXMLChForm);
    }
StrX::~StrX ( ) [inline]
StrX::StrX ( const XMLCh *const  toTranscode) [inline]

Definition at line 18 of file StrX.h.

References fLocalForm.

    {
        // Call the private transcoding method
        fLocalForm = XMLString::transcode(toTranscode);
    }
StrX::~StrX ( ) [inline]

Definition at line 24 of file StrX.h.

References fLocalForm.

    {
        delete [] fLocalForm;
    }

Member Function Documentation

const char* StrX::localForm ( ) const [inline]
const char* StrX::localForm ( ) const [inline]

Definition at line 32 of file StrX.h.

References fLocalForm.

    {
        return fLocalForm;
    }
const XMLCh* StrX::xmlChForm ( ) const [inline]

Definition at line 71 of file StrX.h.

References fXMLChForm.

    {
      return fXMLChForm;
    }

Member Data Documentation

char * StrX::fLocalForm [private]

Definition at line 78 of file StrX.h.

Referenced by localForm(), StrX(), and ~StrX().

XMLCh* StrX::fXMLChForm [private]

Definition at line 77 of file StrX.h.

Referenced by StrX(), xmlChForm(), and ~StrX().