library of assembled shared sources

http://lass.cocamware.com

lass::io::BinaryStreamBase Class Reference

Base class for LASS binary streams with byte-order househoulding. More...

#include <binary_stream_base.h>

Inheritance diagram for lass::io::BinaryStreamBase:

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

Collaboration graph
[legend]

Public Member Functions

num::Endianness endianness () const
void setEndianness (num::Endianness iEndianness)
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

 BinaryStreamBase (num::Endianness iEndianness=num::littleEndian)
virtual ~BinaryStreamBase ()
void swap (NonCopyable &)

Private Attributes

num::Endianness streamEndianness_

Detailed Description

Base class for LASS binary streams with byte-order househoulding.

This class is only to provide functionality to whatever stream derives from it. You're not supposed to actually "use" it. "use" it as in having BinaryStream pointers or references floating in your code. For that matter, the destructor of BinaryStream is protected so life gets a bit troubled if you decide to try it anyway.

Definition at line 71 of file binary_stream_base.h.


Constructor & Destructor Documentation

lass::io::BinaryStreamBase::BinaryStreamBase ( num::Endianness  iEndianness = num::littleEndian  )  [protected]

Definition at line 53 of file binary_stream_base.cpp.

lass::io::BinaryStreamBase::~BinaryStreamBase (  )  [protected, virtual]

Definition at line 61 of file binary_stream_base.cpp.


Member Function Documentation

num::Endianness lass::io::BinaryStreamBase::endianness (  )  const [inline]

void lass::io::BinaryStreamBase::setEndianness ( num::Endianness  iEndianness  )  [inline]

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 lass::io::XmlOElement::XmlOElement().

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

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 85 of file binary_stream_base.h.


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