mermaid::support::xml::XmlCharData Class Reference

Class that holds CharData from XML files. More...

Inheritance diagram for mermaid::support::xml::XmlCharData:
Inheritance graph
[legend]
Collaboration diagram for mermaid::support::xml::XmlCharData:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual XmlCharDataclone ()
const bool isBlank () const
virtual const bool isXmlCharData () const
 Method to check if XmlItem is of type XmlCharData.
virtual const bool isXmlElement () const
 Method to check if XmlItem is of type XmlElement.
virtual operator std::string () const =0
 string cast operator
virtual operator string () const
 Method to convert value to string.
void removeEndBlanks ()
 XmlCharData (const XmlCharData &c)
 XmlCharData (string s)
 XmlCharData (const char *c)
 XmlCharData ()

Detailed Description

Class that holds CharData from XML files.

Inherits from string.

Author:
Marco Barbosa

Definition at line 67 of file XmlCharData.hpp.


Constructor & Destructor Documentation

XmlCharData::XmlCharData (  ) 

Constructor Creates an empty XmlCharData instance.

Definition at line 42 of file XmlCharData.cpp.

XmlCharData::XmlCharData ( const char *  c  ) 

Constructor Creates an XmlCharData instance from a C-like string.

Parameters:
c C-like string

Definition at line 49 of file XmlCharData.cpp.

XmlCharData::XmlCharData ( string  s  ) 

Constructor Creates an XmlCharData instance from a string.

Parameters:
s string

Definition at line 64 of file XmlCharData.cpp.

XmlCharData::XmlCharData ( const XmlCharData c  ) 

Copy constructor.

Definition at line 71 of file XmlCharData.cpp.


Member Function Documentation

const bool XmlCharData::isBlank (  )  const

Checks if instance is filled only with blank characters.

Returns:
TRUE if instance is filled only with blanks, FALSE otherwise.

Definition at line 78 of file XmlCharData.cpp.

const bool XmlCharData::isXmlCharData (  )  const [virtual]

Method to check if XmlItem is of type XmlCharData.

Returns:
True

Reimplemented from mermaid::support::xml::XmlItem.

Definition at line 111 of file XmlCharData.cpp.

const bool XmlItem::isXmlElement (  )  const [virtual, inherited]

Method to check if XmlItem is of type XmlElement.

Returns:
True if XmlItem is of type XmlElement, false otherwise

Reimplemented in mermaid::support::xml::XmlElement.

Definition at line 43 of file XmlItem.cpp.

virtual mermaid::support::syntacticsugar::Stringable::operator std::string (  )  const [pure virtual, inherited]
XmlCharData::operator string (  )  const [virtual]

Method to convert value to string.

Implements mermaid::support::xml::XmlItem.

Definition at line 104 of file XmlCharData.cpp.

void XmlCharData::removeEndBlanks (  ) 

Removes blank characters from the beginning and end.

Definition at line 92 of file XmlCharData.cpp.

Generated on Fri Mar 4 22:15:53 2011 for MeRMaID::support by  doxygen 1.6.3