library of assembled shared sources

http://lass.cocamware.com

lass::io::StreamBase Class Reference

Base class for LASS streams with some state householding. More...

#include <stream_base.h>

Inheritance diagram for lass::io::StreamBase:

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

Collaboration graph
[legend]

Public Member Functions

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

 StreamBase ()
 ~StreamBase ()
void swap (NonCopyable &)

Private Attributes

std::ios::iostate state_

Detailed Description

Base class for LASS streams with some state householding.

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 StreamBase pointers or references floating in your code. For that matter, the destructor of StreamBase is protected so life gets a bit troubled if you decide to try it anyway.

Definition at line 72 of file stream_base.h.


Constructor & Destructor Documentation

lass::io::StreamBase::StreamBase (  )  [inline, protected]

Definition at line 88 of file stream_base.h.

lass::io::StreamBase::~StreamBase (  )  [inline, protected]

Definition at line 89 of file stream_base.h.


Member Function Documentation

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

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

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]

Definition at line 78 of file stream_base.h.

Referenced by operator num::SafeBool().

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

Definition at line 79 of file stream_base.h.

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

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]

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

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

Definition at line 83 of file stream_base.h.

References fail(), lass::num::safeFalse, and lass::num::safeTrue.

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

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

std::ios::iostate lass::io::StreamBase::state_ [private]

Definition at line 93 of file stream_base.h.


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

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