CppUnit project page FAQ CppUnit home page

Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

CppUnit::XmlOutputter::Node Class Reference

An XML Element. More...

#include <XmlOutputter.h>

List of all members.

Public Member Functions

 Node (std::string elementName, std::string content="")
 Node (std::string elementName, int numericContent)
virtual ~Node ()
void addAttribute (std::string attributeName, std::string value)
void addAttribute (std::string attributeName, int numericValue)
void addNode (Node *node)
std::string toString () const

Private Types

typedef std::pair< std::string,
std::string > 
Attribute
typedef std::deque< AttributeAttributes
typedef std::deque< Node * > Nodes

Private Member Functions

std::string attributesAsString () const
std::string escape (std::string value) const

Static Private Member Functions

std::string asString (int value)

Private Attributes

std::string m_name
std::string m_content
Attributes m_attributes
Nodes m_nodes


Detailed Description

An XML Element.

Warning:
This class will probably be replaced with an abstract builder in future version.


Member Typedef Documentation

typedef std::pair<std::string,std::string> CppUnit::XmlOutputter::Node::Attribute [private]
 

typedef std::deque<Attribute> CppUnit::XmlOutputter::Node::Attributes [private]
 

typedef std::deque<Node *> CppUnit::XmlOutputter::Node::Nodes [private]
 


Constructor & Destructor Documentation

CppUnit::XmlOutputter::Node::Node std::string  elementName,
std::string  content = ""
 

CppUnit::XmlOutputter::Node::Node std::string  elementName,
int  numericContent
 

CppUnit::XmlOutputter::Node::~Node  )  [virtual]
 


Member Function Documentation

void CppUnit::XmlOutputter::Node::addAttribute std::string  attributeName,
int  numericValue
 

void CppUnit::XmlOutputter::Node::addAttribute std::string  attributeName,
std::string  value
 

void CppUnit::XmlOutputter::Node::addNode Node node  ) 
 

std::string CppUnit::XmlOutputter::Node::asString int  value  )  [static, private]
 

std::string CppUnit::XmlOutputter::Node::attributesAsString  )  const [private]
 

std::string CppUnit::XmlOutputter::Node::escape std::string  value  )  const [private]
 

std::string CppUnit::XmlOutputter::Node::toString  )  const
 


Member Data Documentation

Attributes CppUnit::XmlOutputter::Node::m_attributes [private]
 

std::string CppUnit::XmlOutputter::Node::m_content [private]
 

std::string CppUnit::XmlOutputter::Node::m_name [private]
 

Nodes CppUnit::XmlOutputter::Node::m_nodes [private]
 


The documentation for this class was generated from the following files:
SourceForge Logo hosts this site. Send comments to:
CppUnit Developers