Follow this link to skip to the main content

claraty::XML_Out Class Reference

#include <xml_out.h>

List of all members.

Static Public Member Functions

Observers
static int get_indentation_level ()
static int get_tab_space ()
static int get_indentation_space ()
static bool is_xml_output_on ()
Mutators
static std::ostream & enable (std::ostream &os)
static std::ostream & disable (std::ostream &os)
static void increment_indentation_level (int repeat=1)
static void decrement_indentation_level (int repeat=1)
static void reset_indentation_level ()

Static Private Attributes

static const int _TAB_SPACE = 2
static int _indentation_level
static bool _xml_output_on


Detailed Description

Definition at line 38 of file xml_out.h.


Member Function Documentation

int claraty::XML_Out::get_indentation_level (  )  [static]

Definition at line 40 of file xml_out.cc.

References _indentation_level.

00041 {
00042   return _indentation_level;
00043 }

int claraty::XML_Out::get_tab_space (  )  [static]

Definition at line 51 of file xml_out.cc.

References _TAB_SPACE.

Referenced by claraty::operator<<().

00052 {
00053   return _TAB_SPACE;
00054 }

int claraty::XML_Out::get_indentation_space (  )  [static]

bool claraty::XML_Out::is_xml_output_on (  )  [static]

Definition at line 73 of file xml_out.cc.

References _xml_output_on.

Referenced by claraty::operator<<().

00074 {
00075   return _xml_output_on;
00076 }

std::ostream & claraty::XML_Out::enable ( std::ostream &  os  )  [static]

Definition at line 86 of file xml_out.cc.

References _xml_output_on.

Referenced by claraty::operator<<().

00087 {
00088   _xml_output_on = true;
00089   return os;
00090 }

std::ostream & claraty::XML_Out::disable ( std::ostream &  os  )  [static]

Definition at line 100 of file xml_out.cc.

References _xml_output_on.

Referenced by claraty::operator<<().

00101 {
00102   _xml_output_on = false;
00103   return os;
00104 }

void claraty::XML_Out::increment_indentation_level ( int  repeat = 1  )  [static]

Definition at line 123 of file xml_out.cc.

References _indentation_level.

Referenced by claraty::operator<<().

00124 {
00125   _indentation_level += repeat;
00126 }

void claraty::XML_Out::decrement_indentation_level ( int  repeat = 1  )  [static]

Definition at line 134 of file xml_out.cc.

References _indentation_level.

Referenced by claraty::operator<<().

00135 {
00136   _indentation_level -= repeat;
00137 }

void claraty::XML_Out::reset_indentation_level (  )  [static]

Definition at line 112 of file xml_out.cc.

References _indentation_level.

00113 {
00114   _indentation_level = 0;
00115 }


Member Data Documentation

const int claraty::XML_Out::_TAB_SPACE = 2 [static, private]

Definition at line 60 of file xml_out.h.

Referenced by get_indentation_space(), and get_tab_space().

bool claraty::XML_Out::_xml_output_on [static, private]

Definition at line 62 of file xml_out.h.

Referenced by disable(), enable(), and is_xml_output_on().


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