vsl_basic_xml_element Class Reference

#include <vsl_basic_xml_element.h>

List of all members.


Detailed Description

Definition at line 30 of file vsl_basic_xml_element.h.


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 (attibute,value) pair.
 ~vsl_basic_xml_element ()
void add_attribute (vcl_string attr_name, double value)
 overloaded add_attribute methods to add different types of values as string.
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, vcl_string value)
void add_attribute_list (vcl_vector< vcl_pair< vcl_string, vcl_string > > attrs)
bool delete_attribute (vcl_string attr_name)
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 to the stream.
void x_write_close (vcl_ostream &ostr)
 writes the closing tag to the stream.

Protected Attributes

vcl_string tag_
vcl_vector< vcl_pair< vcl_string,
vcl_string > > 
attrs_
vcl_string cdata_

Constructor & Destructor Documentation

vsl_basic_xml_element::vsl_basic_xml_element ( vcl_string  tag  )  [inline]

constructs with a name.

Definition at line 34 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 (attibute,value) pair.

Definition at line 38 of file vsl_basic_xml_element.h.

vsl_basic_xml_element::~vsl_basic_xml_element (  )  [inline]

Definition at line 42 of file vsl_basic_xml_element.h.


Member Function Documentation

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

overloaded add_attribute methods to add different types of values as string.

Definition at line 13 of file vsl_basic_xml_element.cxx.

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

Definition at line 20 of file vsl_basic_xml_element.cxx.

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

Definition at line 27 of file vsl_basic_xml_element.cxx.

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

Definition at line 34 of file vsl_basic_xml_element.cxx.

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.

bool vsl_basic_xml_element::delete_attribute ( vcl_string  attr_name  ) 

Definition at line 61 of file vsl_basic_xml_element.cxx.

void vsl_basic_xml_element::append_cdata ( vcl_string  cdata  ) 

Definition at line 40 of file vsl_basic_xml_element.cxx.

void vsl_basic_xml_element::append_cdata ( double  cdata  ) 

Definition at line 47 of file vsl_basic_xml_element.cxx.

void vsl_basic_xml_element::append_cdata ( int  cdata  ) 

Definition at line 54 of file vsl_basic_xml_element.cxx.

void vsl_basic_xml_element::x_write ( vcl_ostream &  ostr  ) 

Definition at line 66 of file vsl_basic_xml_element.cxx.

void vsl_basic_xml_element::x_write_open ( vcl_ostream &  ostr  ) 

writes the opening tag to the stream.

Definition at line 79 of file vsl_basic_xml_element.cxx.

void vsl_basic_xml_element::x_write_close ( vcl_ostream &  ostr  ) 

writes the closing tag to the stream.

Definition at line 89 of file vsl_basic_xml_element.cxx.


Member Data Documentation

vcl_string vsl_basic_xml_element::tag_ [protected]

Definition at line 69 of file vsl_basic_xml_element.h.

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

Definition at line 70 of file vsl_basic_xml_element.h.

vcl_string vsl_basic_xml_element::cdata_ [protected]

Definition at line 71 of file vsl_basic_xml_element.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 22 05:06:00 2008 for core/vsl by  doxygen 1.5.1