library of assembled shared sources

http://lass.cocamware.com

lass::io::XmlOElement Class Reference

Starts a element in a XmlStream you can write to, and that will be closed automatically. More...

#include <xml_o_element.h>

Inheritance diagram for lass::io::XmlOElement:

Inheritance graph
[legend]
Collaboration diagram for lass::io::XmlOElement:

Collaboration graph
[legend]

Public Member Functions

 XmlOElement (XmlOStream &iParent, const std::string &iName)
virtual ~XmlOElement ()
virtual XmlOElementoperator<< (char iIn)
virtual XmlOElementoperator<< (signed char iIn)
virtual XmlOElementoperator<< (unsigned char iIn)
virtual XmlOElementoperator<< (signed short iIn)
virtual XmlOElementoperator<< (unsigned short iIn)
virtual XmlOElementoperator<< (signed int iIn)
virtual XmlOElementoperator<< (unsigned int iIn)
virtual XmlOElementoperator<< (signed long iIn)
virtual XmlOElementoperator<< (unsigned long iIn)
virtual XmlOElementoperator<< (float iIn)
virtual XmlOElementoperator<< (double iIn)
virtual XmlOElementoperator<< (long double iIn)
virtual XmlOElementoperator<< (bool iIn)
virtual XmlOElementoperator<< (const void *iIn)
virtual XmlOElementoperator<< (const char *iIn)
virtual XmlOElementoperator<< (const std::string &iIn)
virtual XmlOElementoperator<< (std::ostream &(*iIn)(std::ostream &))
const bool good () const
const bool eof () const
const bool fail () const
const bool bad () const
std::ios_base::iostate rdstate () const
void clear (std::ios_base::iostate iState=std::ios_base::goodbit)
void setstate (std::ios_base::iostate iState)
 operator num::SafeBool () const
const bool operator! () const

Protected Member Functions

void swap (NonCopyable &)

Private Attributes

XmlOStreamparent_
std::string name_

Detailed Description

Starts a element in a XmlStream you can write to, and that will be closed automatically.

  XmlOFile file("foo.xml", "root");
  {
      XmlOElement element(file, "element");
      element << "inside element";
  }
  file << "outside element";

Definition at line 75 of file xml_o_element.h.


Constructor & Destructor Documentation

lass::io::XmlOElement::XmlOElement ( XmlOStream iParent,
const std::string &  iName 
)

lass::io::XmlOElement::~XmlOElement (  )  [virtual]

Definition at line 64 of file xml_o_element.cpp.

References name_, and parent_.


Member Function Documentation

virtual XmlOElement& lass::io::XmlOElement::operator<< ( char  iIn  )  [virtual]

Implements lass::io::XmlOStream.

virtual XmlOElement& lass::io::XmlOElement::operator<< ( signed char  iIn  )  [virtual]

Implements lass::io::XmlOStream.

virtual XmlOElement& lass::io::XmlOElement::operator<< ( unsigned char  iIn  )  [virtual]

Implements lass::io::XmlOStream.

virtual XmlOElement& lass::io::XmlOElement::operator<< ( signed short  iIn  )  [virtual]

Implements lass::io::XmlOStream.

virtual XmlOElement& lass::io::XmlOElement::operator<< ( unsigned short  iIn  )  [virtual]

Implements lass::io::XmlOStream.

virtual XmlOElement& lass::io::XmlOElement::operator<< ( signed int  iIn  )  [virtual]

Implements lass::io::XmlOStream.

virtual XmlOElement& lass::io::XmlOElement::operator<< ( unsigned int  iIn  )  [virtual]

Implements lass::io::XmlOStream.

virtual XmlOElement& lass::io::XmlOElement::operator<< ( signed long  iIn  )  [virtual]

Implements lass::io::XmlOStream.

virtual XmlOElement& lass::io::XmlOElement::operator<< ( unsigned long  iIn  )  [virtual]

Implements lass::io::XmlOStream.

virtual XmlOElement& lass::io::XmlOElement::operator<< ( float  iIn  )  [virtual]

Implements lass::io::XmlOStream.

virtual XmlOElement& lass::io::XmlOElement::operator<< ( double  iIn  )  [virtual]

Implements lass::io::XmlOStream.

virtual XmlOElement& lass::io::XmlOElement::operator<< ( long double  iIn  )  [virtual]

Implements lass::io::XmlOStream.

virtual XmlOElement& lass::io::XmlOElement::operator<< ( bool  iIn  )  [virtual]

Implements lass::io::XmlOStream.

virtual XmlOElement& lass::io::XmlOElement::operator<< ( const void *  iIn  )  [virtual]

Implements lass::io::XmlOStream.

virtual XmlOElement& lass::io::XmlOElement::operator<< ( const char *  iIn  )  [virtual]

Implements lass::io::XmlOStream.

virtual XmlOElement& lass::io::XmlOElement::operator<< ( const std::string &  iIn  )  [virtual]

Implements lass::io::XmlOStream.

XmlOElement & lass::io::XmlOElement::operator<< ( std::ostream &(*)(std::ostream &)  iIn  )  [virtual]

Implements lass::io::XmlOStream.

Definition at line 96 of file xml_o_element.cpp.

const bool lass::io::StreamBase::good (  )  const [inline, inherited]

const bool lass::io::StreamBase::eof (  )  const [inline, inherited]

Definition at line 77 of file stream_base.h.

Referenced by lass::io::Image::open(), and lass::io::Image::save().

const bool lass::io::StreamBase::fail (  )  const [inline, inherited]

Definition at line 78 of file stream_base.h.

Referenced by lass::io::StreamBase::operator num::SafeBool().

const bool lass::io::StreamBase::bad (  )  const [inline, inherited]

Definition at line 79 of file stream_base.h.

std::ios_base::iostate lass::io::StreamBase::rdstate (  )  const [inline, inherited]

Definition at line 80 of file stream_base.h.

Referenced by XmlOElement().

void lass::io::StreamBase::clear ( std::ios_base::iostate  iState = std::ios_base::goodbit  )  [inline, inherited]

Definition at line 81 of file stream_base.h.

Referenced by lass::io::XmlOFile::close(), lass::io::XmlOFile::open(), and XmlOElement().

void lass::io::StreamBase::setstate ( std::ios_base::iostate  iState  )  [inline, inherited]

lass::io::StreamBase::operator num::SafeBool (  )  const [inline, inherited]

const bool lass::io::StreamBase::operator! (  )  const [inline, inherited]

Definition at line 84 of file stream_base.h.

void lass::util::NonCopyable::swap ( NonCopyable  )  [inline, protected, inherited]

Definition at line 60 of file non_copyable.h.

Referenced by lass::io::Image::readLine().


Field Documentation

Definition at line 103 of file xml_o_element.h.

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

std::string lass::io::XmlOElement::name_ [private]

Definition at line 104 of file xml_o_element.h.

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


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

Generated on Mon Nov 10 14:22:09 2008 for Library of Assembled Shared Sources by doxygen 1.5.7.1
SourceForge.net Logo