CMS 3D CMS Logo

StrX Class Reference

Author:
Apache Xerces C++ Example
More...

#include <DetectorDescription/Parser/src/StrX.h>

List of all members.

Public Types

typedef xercesc_2_7::XMLString XMLString
typedef xercesc_2_7::XMLString XMLString

Public Member Functions

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

Private Attributes

char * fLocalForm
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 31 of file StrX.h.


Member Typedef Documentation

typedef xercesc_2_7::XMLString StrX::XMLString

Definition at line 14 of file StrX.h.

typedef xercesc_2_7::XMLString StrX::XMLString

Definition at line 34 of file StrX.h.


Constructor & Destructor Documentation

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

Definition at line 38 of file StrX.h.

References fLocalForm, fXMLChForm, and transcode().

00038                                          : fXMLChForm(toTranscode)
00039     {
00040       fLocalForm = XMLString::transcode(toTranscode);
00041       fXMLChForm = XMLString::transcode(fLocalForm);
00042     }

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

Definition at line 44 of file StrX.h.

References fLocalForm, fXMLChForm, and transcode().

00045     {
00046       fXMLChForm = XMLString::transcode(toTranscode);
00047       fLocalForm = XMLString::transcode(fXMLChForm);
00048     }

StrX::StrX ( const std::string &  toTranscode  )  [inline]

Definition at line 50 of file StrX.h.

References fLocalForm, fXMLChForm, and transcode().

00051     {
00052       fXMLChForm = XMLString::transcode(toTranscode.c_str());
00053       fLocalForm = XMLString::transcode(fXMLChForm);
00054     }

StrX::~StrX (  )  [inline]

Definition at line 56 of file StrX.h.

References fLocalForm, fXMLChForm, and release().

00057     {
00058       XMLString::release(&fLocalForm);
00059       XMLString::release(&fXMLChForm);
00060     }

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

Definition at line 18 of file StrX.h.

References fLocalForm, and transcode().

00019     {
00020         // Call the private transcoding method
00021         fLocalForm = XMLString::transcode(toTranscode);
00022     }

StrX::~StrX (  )  [inline]

Definition at line 24 of file StrX.h.

References fLocalForm.

00025     {
00026         delete [] fLocalForm;
00027     }


Member Function Documentation

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

Definition at line 32 of file StrX.h.

References fLocalForm.

00033     {
00034         return fLocalForm;
00035     }

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

Definition at line 65 of file StrX.h.

References fLocalForm.

Referenced by operator<<(), SaxToDom::startElement(), and SaxToDom2::startElement().

00066     {
00067       return fLocalForm;
00068     }

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

Definition at line 70 of file StrX.h.

References fXMLChForm.

00071     {
00072       return fXMLChForm;
00073     }


Member Data Documentation

char* StrX::fLocalForm [private]

Definition at line 44 of file StrX.h.

char* StrX::fLocalForm [private]

Definition at line 77 of file StrX.h.

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

XMLCh* StrX::fXMLChForm [private]

Definition at line 76 of file StrX.h.

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


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:32:56 2009 for CMSSW by  doxygen 1.5.4