library of assembled shared sources |
http://lass.cocamware.com |
#include <xml_o_element.h>
Public Member Functions | |
XmlOElement (XmlOStream &iParent, const std::string &iName) | |
virtual | ~XmlOElement () |
virtual XmlOElement & | operator<< (char iIn) |
virtual XmlOElement & | operator<< (signed char iIn) |
virtual XmlOElement & | operator<< (unsigned char iIn) |
virtual XmlOElement & | operator<< (signed short iIn) |
virtual XmlOElement & | operator<< (unsigned short iIn) |
virtual XmlOElement & | operator<< (signed int iIn) |
virtual XmlOElement & | operator<< (unsigned int iIn) |
virtual XmlOElement & | operator<< (signed long iIn) |
virtual XmlOElement & | operator<< (unsigned long iIn) |
virtual XmlOElement & | operator<< (float iIn) |
virtual XmlOElement & | operator<< (double iIn) |
virtual XmlOElement & | operator<< (long double iIn) |
virtual XmlOElement & | operator<< (bool iIn) |
virtual XmlOElement & | operator<< (const void *iIn) |
virtual XmlOElement & | operator<< (const char *iIn) |
virtual XmlOElement & | operator<< (const std::string &iIn) |
virtual XmlOElement & | operator<< (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 | |
XmlOStream & | parent_ |
std::string | name_ |
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.
lass::io::XmlOElement::XmlOElement | ( | XmlOStream & | iParent, | |
const std::string & | iName | |||
) |
Definition at line 53 of file xml_o_element.cpp.
References lass::io::StreamBase::clear(), name_, parent_, and lass::io::StreamBase::rdstate().
lass::io::XmlOElement::~XmlOElement | ( | ) | [virtual] |
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] |
const bool lass::io::StreamBase::good | ( | ) | const [inline, inherited] |
Definition at line 76 of file stream_base.h.
Referenced by lass::io::BinaryOFile::doFlush(), lass::io::BinaryISocket::doRead(), lass::io::BinaryIMemoryMap::doRead(), lass::io::BinaryIMemoryBlock::doRead(), lass::io::BinaryIFile::doRead(), lass::io::BinaryIMemoryMap::doSeekg(), lass::io::BinaryOSocket::doWrite(), lass::io::BinaryOFile::doWrite(), lass::io::Image::open(), lass::io::BinaryOFile::open(), lass::io::BinaryIStream::operator>>(), lass::io::Image::HeaderPfm::readFrom(), lass::io::Image::HeaderRadianceHdr::readFrom(), lass::io::Image::readLine(), lass::io::BinaryIStream::readValue(), and lass::io::Image::save().
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] |
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] |
Definition at line 82 of file stream_base.h.
Referenced by lass::io::BinaryOFile::close(), lass::io::BinaryIFile::close(), lass::io::BinaryOFile::doFlush(), lass::io::BinaryISocket::doRead(), lass::io::BinaryIMemoryMap::doRead(), lass::io::BinaryIMemoryBlock::doRead(), lass::io::BinaryIFile::doRead(), lass::io::BinaryIMemoryMap::doSeekg(), lass::io::BinaryIFile::doSeekg(), lass::io::BinaryOFile::doSeekp(), lass::io::BinaryOFile::doWrite(), lass::io::BinaryOSocket::flusher(), lass::io::BinaryOFile::open(), lass::io::BinaryIMemoryMap::open(), and lass::io::BinaryIFile::open().
lass::io::StreamBase::operator num::SafeBool | ( | ) | const [inline, inherited] |
Definition at line 83 of file stream_base.h.
References lass::io::StreamBase::fail(), lass::num::safeFalse, and lass::num::safeTrue.
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] |
XmlOStream& lass::io::XmlOElement::parent_ [private] |
std::string lass::io::XmlOElement::name_ [private] |
Generated on Mon Nov 10 14:22:09 2008 for Library of Assembled Shared Sources by 1.5.7.1 |