library of assembled shared sources |
http://lass.cocamware.com |
#include <binary_o_stream.h>
Public Member Functions | |
BinaryOStream () | |
~BinaryOStream () | |
long | tellp () const |
BinaryOStream & | seekp (long position) |
BinaryOStream & | seekp (long offset, std::ios_base::seekdir direction) |
void | flush () |
BinaryOStream & | operator<< (char x) |
BinaryOStream & | operator<< (num::Tint8 x) |
BinaryOStream & | operator<< (num::Tuint8 x) |
BinaryOStream & | operator<< (num::Tint16 x) |
BinaryOStream & | operator<< (num::Tuint16 x) |
BinaryOStream & | operator<< (num::Tint32 x) |
BinaryOStream & | operator<< (num::Tuint32 x) |
BinaryOStream & | operator<< (num::Tint64 x) |
BinaryOStream & | operator<< (num::Tuint64 x) |
BinaryOStream & | operator<< (num::Tfloat32 x) |
BinaryOStream & | operator<< (num::Tfloat64 x) |
BinaryOStream & | operator<< (bool x) |
BinaryOStream & | operator<< (const void *x) |
BinaryOStream & | operator<< (const char *x) |
BinaryOStream & | operator<< (const std::string &x) |
template<typename T > | |
BinaryOStream & | operator<< (const std::vector< T > &x) |
template<typename T > | |
BinaryOStream & | operator<< (const std::complex< T > &x) |
void | write (const void *buffer, size_t byteLength) |
write a buffer of bytes to the stream | |
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 | |
void | swap (NonCopyable &) |
Private Member Functions | |
template<typename T > | |
BinaryOStream & | writeValue (T x) |
BinaryOStream & | writeString (const char *string, size_t length) |
virtual long | doTellp () const =0 |
virtual void | doSeekp (long offset, std::ios_base::seekdir direction)=0 |
virtual void | doFlush ()=0 |
virtual void | doWrite (const void *bytes, size_t numberOfBytes)=0 |
Definition at line 65 of file binary_o_stream.h.
lass::io::BinaryOStream::BinaryOStream | ( | ) |
Definition at line 59 of file binary_o_stream.cpp.
lass::io::BinaryOStream::~BinaryOStream | ( | ) |
Definition at line 66 of file binary_o_stream.cpp.
long lass::io::BinaryOStream::tellp | ( | ) | const |
BinaryOStream & lass::io::BinaryOStream::seekp | ( | long | position | ) |
Definition at line 79 of file binary_o_stream.cpp.
References doSeekp().
Referenced by lass::io::Image::HeaderIgi::writeTo().
BinaryOStream & lass::io::BinaryOStream::seekp | ( | long | offset, | |
std::ios_base::seekdir | direction | |||
) |
void lass::io::BinaryOStream::flush | ( | ) |
BinaryOStream & lass::io::BinaryOStream::operator<< | ( | char | x | ) |
BinaryOStream & lass::io::BinaryOStream::operator<< | ( | num::Tint8 | x | ) |
BinaryOStream & lass::io::BinaryOStream::operator<< | ( | num::Tuint8 | x | ) |
BinaryOStream & lass::io::BinaryOStream::operator<< | ( | num::Tint16 | x | ) |
BinaryOStream & lass::io::BinaryOStream::operator<< | ( | num::Tuint16 | x | ) |
BinaryOStream & lass::io::BinaryOStream::operator<< | ( | num::Tint32 | x | ) |
BinaryOStream & lass::io::BinaryOStream::operator<< | ( | num::Tuint32 | x | ) |
BinaryOStream & lass::io::BinaryOStream::operator<< | ( | num::Tint64 | x | ) |
BinaryOStream & lass::io::BinaryOStream::operator<< | ( | num::Tuint64 | x | ) |
BinaryOStream & lass::io::BinaryOStream::operator<< | ( | num::Tfloat32 | x | ) |
BinaryOStream & lass::io::BinaryOStream::operator<< | ( | num::Tfloat64 | x | ) |
BinaryOStream & lass::io::BinaryOStream::operator<< | ( | bool | x | ) |
Definition at line 179 of file binary_o_stream.cpp.
BinaryOStream & lass::io::BinaryOStream::operator<< | ( | const void * | x | ) |
BinaryOStream & lass::io::BinaryOStream::operator<< | ( | const char * | x | ) |
BinaryOStream & lass::io::BinaryOStream::operator<< | ( | const std::string & | x | ) |
BinaryOStream & lass::io::BinaryOStream::operator<< | ( | const std::vector< T > & | x | ) | [inline] |
BinaryOStream & lass::io::BinaryOStream::operator<< | ( | const std::complex< T > & | x | ) | [inline] |
Definition at line 79 of file binary_o_stream.inl.
void lass::io::BinaryOStream::write | ( | const void * | bytes, | |
size_t | numBytes | |||
) |
write a buffer of bytes to the stream
bytes | pointer to buffer. | |
numBytes | length of buffer in bytes. |
Definition at line 212 of file binary_o_stream.cpp.
References doWrite().
Referenced by lass::io::Image::saveRadianceHdr(), lass::io::Image::saveTarga(), lass::io::Image::writeLine(), and lass::io::Image::HeaderRadianceHdr::writeTo().
BinaryOStream & lass::io::BinaryOStream::writeValue | ( | T | x | ) | [inline, private] |
Definition at line 220 of file binary_o_stream.cpp.
References doWrite(), lass::io::BinaryStreamBase::endianness(), lass::num::fixEndianness(), and lass::stde::T.
Referenced by operator<<().
BinaryOStream & lass::io::BinaryOStream::writeString | ( | const char * | string, | |
size_t | length | |||
) | [private] |
Definition at line 229 of file binary_o_stream.cpp.
References doWrite(), and LASS_ASSERT.
Referenced by operator<<().
virtual long lass::io::BinaryOStream::doTellp | ( | ) | const [private, pure virtual] |
virtual void lass::io::BinaryOStream::doSeekp | ( | long | offset, | |
std::ios_base::seekdir | direction | |||
) | [private, pure virtual] |
virtual void lass::io::BinaryOStream::doFlush | ( | ) | [private, pure virtual] |
virtual void lass::io::BinaryOStream::doWrite | ( | const void * | bytes, | |
size_t | numberOfBytes | |||
) | [private, pure virtual] |
Implemented in lass::io::BinaryOFile, and lass::io::BinaryOSocket.
Referenced by write(), writeString(), and writeValue().
num::Endianness lass::io::BinaryStreamBase::endianness | ( | ) | const [inline, inherited] |
Definition at line 75 of file binary_stream_base.h.
Referenced by lass::io::BinaryIStream::readValue(), and writeValue().
void lass::io::BinaryStreamBase::setEndianness | ( | num::Endianness | iEndianness | ) | [inline, inherited] |
Definition at line 76 of file binary_stream_base.h.
Referenced by lass::io::EndiannessSetter::EndiannessSetter(), and lass::io::EndiannessSetter::~EndiannessSetter().
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 lass::io::XmlOElement::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] |
Generated on Mon Nov 10 14:22:09 2008 for Library of Assembled Shared Sources by 1.5.7.1 |