CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
StrX Class Reference

#include <StrX.h>

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 14 of file StrX.h.

typedef XERCES_CPP_NAMESPACE::XMLString StrX::XMLString

Definition at line 35 of file StrX.h.

Constructor & Destructor Documentation

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

Definition at line 39 of file StrX.h.

References fLocalForm, fXMLChForm, and XERCES_CPP_NAMESPACE_USE::transcode().

40  {
41  fLocalForm = XMLString::transcode(toTranscode);
43  }
char * fLocalForm
Definition: StrX.h:78
XMLCh * transcode(const T &fInput)
XMLCh * fXMLChForm
Definition: StrX.h:77
StrX::StrX ( const char *const  toTranscode)
inline

Definition at line 45 of file StrX.h.

References fLocalForm, fXMLChForm, and XERCES_CPP_NAMESPACE_USE::transcode().

46  {
47  fXMLChForm = XMLString::transcode(toTranscode);
49  }
char * fLocalForm
Definition: StrX.h:78
XMLCh * transcode(const T &fInput)
XMLCh * fXMLChForm
Definition: StrX.h:77
StrX::StrX ( const std::string &  toTranscode)
inline

Definition at line 51 of file StrX.h.

References fLocalForm, fXMLChForm, and XERCES_CPP_NAMESPACE_USE::transcode().

52  {
53  fXMLChForm = XMLString::transcode(toTranscode.c_str());
55  }
char * fLocalForm
Definition: StrX.h:78
XMLCh * transcode(const T &fInput)
XMLCh * fXMLChForm
Definition: StrX.h:77
StrX::~StrX ( )
inline

Definition at line 57 of file StrX.h.

References fLocalForm, fXMLChForm, and fetchall_from_DQM_v2::release.

58  {
61  }
char * fLocalForm
Definition: StrX.h:78
XMLCh * fXMLChForm
Definition: StrX.h:77
StrX::StrX ( const XMLCh *const  toTranscode)
inline

Definition at line 18 of file StrX.h.

References fLocalForm, and XERCES_CPP_NAMESPACE_USE::transcode().

19  {
20  // Call the private transcoding method
21  fLocalForm = XMLString::transcode(toTranscode);
22  }
char * fLocalForm
Definition: StrX.h:78
XMLCh * transcode(const T &fInput)
StrX::~StrX ( )
inline

Definition at line 24 of file StrX.h.

References fLocalForm.

25  {
26  delete [] fLocalForm;
27  }
char * fLocalForm
Definition: StrX.h:78

Member Function Documentation

const char* StrX::localForm ( ) const
inline

Definition at line 32 of file StrX.h.

References fLocalForm.

33  {
34  return fLocalForm;
35  }
char * fLocalForm
Definition: StrX.h:78
const char* StrX::localForm ( ) const
inline

Definition at line 66 of file StrX.h.

References fLocalForm.

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

67  {
68  return fLocalForm;
69  }
char * fLocalForm
Definition: StrX.h:78
const XMLCh* StrX::xmlChForm ( ) const
inline

Definition at line 71 of file StrX.h.

References fXMLChForm.

72  {
73  return fXMLChForm;
74  }
XMLCh * fXMLChForm
Definition: StrX.h:77

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().