library of assembled shared sources |
http://lass.cocamware.com |
#include <binary_i_memory_map.h>
Public Member Functions | |
BinaryIMemoryMap () | |
BinaryIMemoryMap (const char *filename) | |
BinaryIMemoryMap (const std::string &filename) | |
~BinaryIMemoryMap () | |
void | open (const char *filename) |
void | open (const std::string &filename) |
void | close () |
bool | is_open () const |
long | tellg () const |
BinaryIStream & | seekg (long iPosition) |
BinaryIStream & | seekg (long iOffset, std::ios_base::seekdir iDirection) |
BinaryIStream & | operator>> (char &x) |
BinaryIStream & | operator>> (num::Tint8 &x) |
BinaryIStream & | operator>> (num::Tuint8 &x) |
BinaryIStream & | operator>> (num::Tint16 &x) |
BinaryIStream & | operator>> (num::Tuint16 &x) |
BinaryIStream & | operator>> (num::Tint32 &x) |
BinaryIStream & | operator>> (num::Tuint32 &x) |
BinaryIStream & | operator>> (num::Tint64 &x) |
BinaryIStream & | operator>> (num::Tuint64 &x) |
BinaryIStream & | operator>> (num::Tfloat32 &x) |
BinaryIStream & | operator>> (num::Tfloat64 &x) |
BinaryIStream & | operator>> (bool &x) |
BinaryIStream & | operator>> (void *&x) |
BinaryIStream & | operator>> (std::string &oOut) |
template<typename T > | |
BinaryIStream & | operator>> (std::vector< T > &oOut) |
template<typename T > | |
BinaryIStream & | operator>> (std::complex< T > &oOut) |
void | read (void *oOutput, size_t iNumberOfBytes) |
read a number of bytes from stream to buffer | |
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 | |
long | doTellg () const |
void | doSeekg (long offset, std::ios_base::seekdir direction) |
void | doRead (void *output, size_t numberOfBytes) |
Private Attributes | |
impl::BinaryIMemoryMapImpl * | pimpl_ |
char * | data_ |
long | begin_ |
long | end_ |
long | size_ |
long | position_ |
Definition at line 62 of file binary_i_memory_map.h.
lass::io::BinaryIMemoryMap::BinaryIMemoryMap | ( | ) |
Definition at line 199 of file binary_i_memory_map.cpp.
lass::io::BinaryIMemoryMap::BinaryIMemoryMap | ( | const char * | filename | ) |
lass::io::BinaryIMemoryMap::BinaryIMemoryMap | ( | const std::string & | filename | ) |
lass::io::BinaryIMemoryMap::~BinaryIMemoryMap | ( | ) |
void lass::io::BinaryIMemoryMap::open | ( | const char * | filename | ) |
Definition at line 228 of file binary_i_memory_map.cpp.
References begin_, close(), data_, end_, LASS_LOG, pimpl_, position_, lass::io::StreamBase::setstate(), and size_.
Referenced by BinaryIMemoryMap(), and open().
void lass::io::BinaryIMemoryMap::open | ( | const std::string & | filename | ) |
void lass::io::BinaryIMemoryMap::close | ( | ) |
Definition at line 265 of file binary_i_memory_map.cpp.
References pimpl_.
Referenced by open(), and ~BinaryIMemoryMap().
bool lass::io::BinaryIMemoryMap::is_open | ( | ) | const |
long lass::io::BinaryIMemoryMap::doTellg | ( | ) | const [private, virtual] |
Implements lass::io::BinaryIStream.
Definition at line 282 of file binary_i_memory_map.cpp.
References position_.
void lass::io::BinaryIMemoryMap::doSeekg | ( | long | offset, | |
std::ios_base::seekdir | direction | |||
) | [private, virtual] |
Implements lass::io::BinaryIStream.
Definition at line 289 of file binary_i_memory_map.cpp.
References begin_, data_, end_, lass::io::StreamBase::good(), LASS_ASSERT_UNREACHABLE, LASS_LOG, pimpl_, position_, lass::io::impl::BinaryIMemoryMapImpl::remap(), lass::io::StreamBase::setstate(), and size_.
void lass::io::BinaryIMemoryMap::doRead | ( | void * | output, | |
size_t | numberOfBytes | |||
) | [private, virtual] |
Implements lass::io::BinaryIStream.
Definition at line 333 of file binary_i_memory_map.cpp.
References begin_, data_, end_, lass::io::StreamBase::good(), LASS_LOG, pimpl_, position_, lass::io::impl::BinaryIMemoryMapImpl::remap(), lass::io::StreamBase::setstate(), and size_.
long lass::io::BinaryIStream::tellg | ( | ) | const [inherited] |
BinaryIStream & lass::io::BinaryIStream::seekg | ( | long | iPosition | ) | [inherited] |
Definition at line 80 of file binary_i_stream.cpp.
References lass::io::BinaryIStream::doSeekg().
Referenced by lass::io::Image::openTargaTrueColor(), and lass::io::Image::HeaderIgi::readFrom().
BinaryIStream & lass::io::BinaryIStream::seekg | ( | long | iOffset, | |
std::ios_base::seekdir | iDirection | |||
) | [inherited] |
BinaryIStream & lass::io::BinaryIStream::operator>> | ( | char & | x | ) | [inherited] |
BinaryIStream & lass::io::BinaryIStream::operator>> | ( | num::Tint8 & | x | ) | [inherited] |
Definition at line 103 of file binary_i_stream.cpp.
References lass::io::BinaryIStream::readValue().
BinaryIStream & lass::io::BinaryIStream::operator>> | ( | num::Tuint8 & | x | ) | [inherited] |
Definition at line 110 of file binary_i_stream.cpp.
References lass::io::BinaryIStream::readValue().
BinaryIStream & lass::io::BinaryIStream::operator>> | ( | num::Tint16 & | x | ) | [inherited] |
Definition at line 117 of file binary_i_stream.cpp.
References lass::io::BinaryIStream::readValue().
BinaryIStream & lass::io::BinaryIStream::operator>> | ( | num::Tuint16 & | x | ) | [inherited] |
Definition at line 124 of file binary_i_stream.cpp.
References lass::io::BinaryIStream::readValue().
BinaryIStream & lass::io::BinaryIStream::operator>> | ( | num::Tint32 & | x | ) | [inherited] |
Definition at line 131 of file binary_i_stream.cpp.
References lass::io::BinaryIStream::readValue().
BinaryIStream & lass::io::BinaryIStream::operator>> | ( | num::Tuint32 & | x | ) | [inherited] |
Definition at line 138 of file binary_i_stream.cpp.
References lass::io::BinaryIStream::readValue().
BinaryIStream & lass::io::BinaryIStream::operator>> | ( | num::Tint64 & | x | ) | [inherited] |
Definition at line 145 of file binary_i_stream.cpp.
References lass::io::BinaryIStream::readValue().
BinaryIStream & lass::io::BinaryIStream::operator>> | ( | num::Tuint64 & | x | ) | [inherited] |
Definition at line 152 of file binary_i_stream.cpp.
References lass::io::BinaryIStream::readValue().
BinaryIStream & lass::io::BinaryIStream::operator>> | ( | num::Tfloat32 & | x | ) | [inherited] |
Definition at line 159 of file binary_i_stream.cpp.
References lass::io::BinaryIStream::readValue().
BinaryIStream & lass::io::BinaryIStream::operator>> | ( | num::Tfloat64 & | x | ) | [inherited] |
Definition at line 166 of file binary_i_stream.cpp.
References lass::io::BinaryIStream::readValue().
BinaryIStream & lass::io::BinaryIStream::operator>> | ( | bool & | x | ) | [inherited] |
BinaryIStream & lass::io::BinaryIStream::operator>> | ( | void *& | x | ) | [inherited] |
Definition at line 186 of file binary_i_stream.cpp.
References lass::io::StreamBase::good(), and LASS_META_ASSERT.
BinaryIStream & lass::io::BinaryIStream::operator>> | ( | std::string & | oOut | ) | [inherited] |
Definition at line 201 of file binary_i_stream.cpp.
References lass::io::BinaryIStream::doRead(), lass::io::StreamBase::good(), and LASS_ASSERT.
BinaryIStream & lass::io::BinaryIStream::operator>> | ( | std::vector< T > & | oOut | ) | [inline, inherited] |
Definition at line 60 of file binary_i_stream.inl.
References lass::io::StreamBase::good(), LASS_ASSERT, and lass::stde::T.
BinaryIStream & lass::io::BinaryIStream::operator>> | ( | std::complex< T > & | oOut | ) | [inline, inherited] |
Definition at line 95 of file binary_i_stream.inl.
References lass::io::StreamBase::good(), and lass::stde::T.
void lass::io::BinaryIStream::read | ( | void * | output, | |
size_t | numBytes | |||
) | [inherited] |
read a number of bytes from stream to buffer
iBytes | pointer to buffer. Must be able to contain at least numBytes bytes. | |
numBytes | number of bytes to be read |
Definition at line 229 of file binary_i_stream.cpp.
References lass::io::BinaryIStream::doRead().
Referenced by lass::io::BinaryISocket::doRead(), lass::io::Image::openRadianceHdr(), lass::io::Image::openTargaTrueColor(), lass::io::Image::HeaderPfm::readFrom(), and lass::io::Image::HeaderRadianceHdr::readFrom().
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 lass::io::BinaryOStream::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(), doRead(), lass::io::BinaryIMemoryBlock::doRead(), lass::io::BinaryIFile::doRead(), 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(), doRead(), lass::io::BinaryIMemoryBlock::doRead(), lass::io::BinaryIFile::doRead(), doSeekg(), lass::io::BinaryIFile::doSeekg(), lass::io::BinaryOFile::doSeekp(), lass::io::BinaryOFile::doWrite(), lass::io::BinaryOSocket::flusher(), lass::io::BinaryOFile::open(), 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] |
char* lass::io::BinaryIMemoryMap::data_ [private] |
long lass::io::BinaryIMemoryMap::begin_ [private] |
long lass::io::BinaryIMemoryMap::end_ [private] |
long lass::io::BinaryIMemoryMap::size_ [private] |
long lass::io::BinaryIMemoryMap::position_ [private] |
Generated on Mon Nov 10 14:22:09 2008 for Library of Assembled Shared Sources by 1.5.7.1 |