Public Member Functions | Protected Attributes
vsl_basic_xml_element Class Reference

#include <vsl_basic_xml_element.h>

List of all members.

Public Member Functions

 vsl_basic_xml_element (vcl_string tag)
 constructs with a name.
 vsl_basic_xml_element (vcl_string tag, vcl_vector< vcl_pair< vcl_string, vcl_string > > attrs)
 constructs with a name and a list of (attribute,value) pair.
 ~vsl_basic_xml_element ()
void add_attribute (vcl_string attr_name, vcl_string value)
 overloaded methods to add attribute values.
void add_attribute (vcl_string attr_name, double value)
void add_attribute (vcl_string attr_name, float value)
void add_attribute (vcl_string attr_name, long value)
void add_attribute (vcl_string attr_name, int value)
void add_attribute (vcl_string attr_name, unsigned long value)
void add_attribute (vcl_string attr_name, unsigned int value)
void add_attribute_list (vcl_vector< vcl_pair< vcl_string, vcl_string > > attrs)
void append_cdata (vcl_string cdata)
void append_cdata (double cdata)
void append_cdata (int cdata)
void x_write (vcl_ostream &ostr)
void x_write_open (vcl_ostream &ostr)
 writes the opening tag for this node to the stream.
void x_write_close (vcl_ostream &ostr)
 writes the closing tag for this node to the stream.

Protected Attributes

vcl_string tag_
 the node name
vcl_vector< vcl_pair
< vcl_string, vcl_string > > 
attrs_
 the node attributes
vcl_string cdata_
 the text() content of this node

Detailed Description

Definition at line 26 of file vsl_basic_xml_element.h.


Constructor & Destructor Documentation

vsl_basic_xml_element::vsl_basic_xml_element ( vcl_string  tag) [inline]

constructs with a name.

Definition at line 30 of file vsl_basic_xml_element.h.

vsl_basic_xml_element::vsl_basic_xml_element ( vcl_string  tag,
vcl_vector< vcl_pair< vcl_string, vcl_string > >  attrs 
) [inline]

constructs with a name and a list of (attribute,value) pair.

Definition at line 34 of file vsl_basic_xml_element.h.

vsl_basic_xml_element::~vsl_basic_xml_element ( ) [inline]

Definition at line 38 of file vsl_basic_xml_element.h.


Member Function Documentation

void vsl_basic_xml_element::add_attribute ( vcl_string  attr_name,
vcl_string  value 
)

overloaded methods to add attribute values.

Definition at line 13 of file vsl_basic_xml_element.cxx.

void vsl_basic_xml_element::add_attribute ( vcl_string  attr_name,
double  value 
)

Definition at line 19 of file vsl_basic_xml_element.cxx.

void vsl_basic_xml_element::add_attribute ( vcl_string  attr_name,
float  value 
) [inline]

Definition at line 43 of file vsl_basic_xml_element.h.

void vsl_basic_xml_element::add_attribute ( vcl_string  attr_name,
long  value 
)

Definition at line 26 of file vsl_basic_xml_element.cxx.

void vsl_basic_xml_element::add_attribute ( vcl_string  attr_name,
int  value 
) [inline]

Definition at line 45 of file vsl_basic_xml_element.h.

void vsl_basic_xml_element::add_attribute ( vcl_string  attr_name,
unsigned long  value 
) [inline]

Definition at line 46 of file vsl_basic_xml_element.h.

void vsl_basic_xml_element::add_attribute ( vcl_string  attr_name,
unsigned int  value 
) [inline]

Definition at line 47 of file vsl_basic_xml_element.h.

void vsl_basic_xml_element::add_attribute_list ( vcl_vector< vcl_pair< vcl_string, vcl_string > >  attrs)

Definition at line 6 of file vsl_basic_xml_element.cxx.

void vsl_basic_xml_element::append_cdata ( vcl_string  cdata)

Definition at line 33 of file vsl_basic_xml_element.cxx.

void vsl_basic_xml_element::append_cdata ( double  cdata)

Definition at line 40 of file vsl_basic_xml_element.cxx.

void vsl_basic_xml_element::append_cdata ( int  cdata)

Definition at line 47 of file vsl_basic_xml_element.cxx.

void vsl_basic_xml_element::x_write ( vcl_ostream &  ostr)

Definition at line 62 of file vsl_basic_xml_element.cxx.

void vsl_basic_xml_element::x_write_close ( vcl_ostream &  ostr)

writes the closing tag for this node to the stream.

writes the closing tag to the stream.

Definition at line 85 of file vsl_basic_xml_element.cxx.

void vsl_basic_xml_element::x_write_open ( vcl_ostream &  ostr)

writes the opening tag for this node to the stream.

Definition at line 75 of file vsl_basic_xml_element.cxx.


Member Data Documentation

vcl_vector<vcl_pair<vcl_string, vcl_string> > vsl_basic_xml_element::attrs_ [protected]

the node attributes

Definition at line 66 of file vsl_basic_xml_element.h.

vcl_string vsl_basic_xml_element::cdata_ [protected]

the text() content of this node

Definition at line 67 of file vsl_basic_xml_element.h.

vcl_string vsl_basic_xml_element::tag_ [protected]

the node name

Definition at line 65 of file vsl_basic_xml_element.h.


The documentation for this class was generated from the following files: