XMLnode Class Reference

#include <XMLEntity.h>

Collaboration diagram for XMLnode:

Collaboration graph
[legend]
List of all members.

Public Types

typedef std::pair< std::string,
std::string > 
KeyType
typedef std::vector< KeyTypeKeyTypeList

Public Member Functions

 XMLnode ()
 XMLnode (const std::string &i)
 XMLnode (const XMLnode &n)
 ~XMLnode ()
XMLnodeoperator= (const XMLnode &n)
const std::string & reference (const std::string &, bool &)
const XMLnodesubtree (const std::string &) const
const std::string & value (void) const
bool searchpairs (KeyTypeList &ktl, const std::string &basekey, const std::string currkey, const unsigned int pos)
void selectpairs (KeyTypeList &ktl, const std::string currkey)
std::string dump (int depth=0)
void dump (std::ostream &o, const std::string &indentstr, const unsigned int depth=0) const
void xmlassign (const std::string &key, const std::string &value)
void xmlparse (const std::string &s, std::size_t &pos)
void listkeys (const std::string &, std::vector< std::string > &, bool longformat=true) const

Protected Attributes

std::string id
std::string content
std::vector< XMLnode * > nodelist
bool no_close

Detailed Description

Definition at line 26 of file XMLEntity.h.


Member Typedef Documentation

typedef std::pair<std::string, std::string> XMLnode::KeyType

Definition at line 50 of file XMLEntity.h.

typedef std::vector<KeyType> XMLnode::KeyTypeList

Definition at line 51 of file XMLEntity.h.


Constructor & Destructor Documentation

XMLnode::XMLnode (  )  [inline]

Definition at line 35 of file XMLEntity.h.

XMLnode::XMLnode ( const std::string &  i  )  [inline]

Definition at line 37 of file XMLEntity.h.

XMLnode::XMLnode ( const XMLnode n  )  [inline]

Definition at line 39 of file XMLEntity.h.

XMLnode::~XMLnode (  ) 

Definition at line 38 of file XMLEntity.cc.

References nodelist.


Member Function Documentation

XMLnode& XMLnode::operator= ( const XMLnode n  )  [inline]

Definition at line 43 of file XMLEntity.h.

References content, id, no_close, and nodelist.

const std::string& XMLnode::reference ( const std::string &  ,
bool &   
)

const XMLnode* XMLnode::subtree ( const std::string &   )  const

const std::string& XMLnode::value ( void   )  const [inline]

Definition at line 47 of file XMLEntity.h.

References content.

bool XMLnode::searchpairs ( KeyTypeList ktl,
const std::string &  basekey,
const std::string  currkey,
const unsigned int  pos 
)

void XMLnode::selectpairs ( KeyTypeList ktl,
const std::string  currkey 
)

Definition at line 411 of file XMLEntity.cc.

References content, and nodelist.

string XMLnode::dump ( int  depth = 0  ) 

Definition at line 106 of file XMLEntity.cc.

References close_tag(), content, encode_entity(), id, no_close, nodelist, and s.

Referenced by Configuration::dump().

Here is the call graph for this function:

void XMLnode::dump ( std::ostream &  o,
const std::string &  indentstr,
const unsigned int  depth = 0 
) const

void XMLnode::xmlassign ( const std::string &  key,
const std::string &  value 
)

void XMLnode::xmlparse ( const std::string &  s,
std::size_t &  pos 
)

void XMLnode::listkeys ( const std::string &  ,
std::vector< std::string > &  ,
bool  longformat = true 
) const


Member Data Documentation

std::string XMLnode::id [protected]

Definition at line 29 of file XMLEntity.h.

Referenced by dump(), and operator=().

std::string XMLnode::content [protected]

Definition at line 30 of file XMLEntity.h.

Referenced by dump(), operator=(), selectpairs(), and value().

std::vector<XMLnode*> XMLnode::nodelist [protected]

Definition at line 31 of file XMLEntity.h.

Referenced by dump(), operator=(), selectpairs(), and ~XMLnode().

bool XMLnode::no_close [protected]

Definition at line 32 of file XMLEntity.h.

Referenced by dump(), and operator=().


The documentation for this class was generated from the following files:
Generated on Mon Jul 9 15:06:14 2007 for ExultEngine by  doxygen 1.5.1