#include <vsl_basic_xml_element.h>
Definition at line 26 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_ |
| vsl_basic_xml_element::vsl_basic_xml_element | ( | vcl_string | tag | ) | [inline] |
| 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 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.
| 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 | ) |
| void vsl_basic_xml_element::x_write_close | ( | vcl_ostream & | ostr | ) |
vcl_string vsl_basic_xml_element::tag_ [protected] |
Definition at line 65 of file vsl_basic_xml_element.h.
vcl_vector<vcl_pair<vcl_string, vcl_string> > vsl_basic_xml_element::attrs_ [protected] |
Definition at line 66 of file vsl_basic_xml_element.h.
vcl_string vsl_basic_xml_element::cdata_ [protected] |
Definition at line 67 of file vsl_basic_xml_element.h.
1.5.1