ircproxy  The Ultimate Cyborg

XMLLabel Class Reference

#include <PersistXML.h>

List of all members.


Detailed Description

An XML label.

Output/input an extra <label>...</label> pair, increasing the indentation.

Definition at line 161 of file PersistXML.h.


Public Member Functions

 XMLLabel (PersistXML &xml, std::string const &label)
 Open label archive xml.
 ~XMLLabel ()
 Close the label.

Private Attributes

PersistXMLM_xml
 The archive.
std::string M_label
 The label.

Constructor & Destructor Documentation

XMLLabel::XMLLabel ( PersistXML xml,
std::string const &  label 
) [inline]

Open label archive xml.

Definition at line 167 of file PersistXML.h.

References PersistXML::M_archive, PersistXML::M_indent, M_label, and M_xml.

00167                                                     :
00168       M_xml(xml), M_label(label) { M_xml.M_archive << M_xml.M_indent++ << '<' << M_label << ">\n"; }
  //! Close the label.

XMLLabel::~XMLLabel (  )  [inline]

Close the label.

Definition at line 170 of file PersistXML.h.

References PersistXML::M_archive, PersistXML::M_indent, M_label, and M_xml.

00170 { M_xml.M_archive << --M_xml.M_indent << "</" << M_label << ">\n"; }


Member Data Documentation

The archive.

Definition at line 163 of file PersistXML.h.

Referenced by XMLLabel(), and ~XMLLabel().

std::string XMLLabel::M_label [private]

The label.

Definition at line 164 of file PersistXML.h.

Referenced by XMLLabel(), and ~XMLLabel().


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

Copyright © 2005-2007 Carlo Wood.  All rights reserved.