sdr::IStream Class Reference

#include <SDR.hxx>

Inheritance diagram for sdr::IStream:

sdr::Stream sdr::BufIStream sdr::FileIStream sdr::MemIStream List of all members.

Public Member Functions

 IStream (Encoding e)
ocmoff_t length ()
char getc ()
char peekc ()
ocmoff_t read (void *vp, ocmoff_t len)
Buffer readBuffer (ocmoff_t len)
size_t scanf (const char *fmt,...)
uint8_t r_u8 (const char *elem)
uint16_t r_u16 (const char *elem)
uint32_t r_u32 (const char *elem)
uint64_t r_u64 (const char *elem)
ByteString r_bytes (const char *elem, uint32_t len)
GCPtr< Bufferr_buffer (const char *elem, ocmoff_t len)
std::string r_string (const char *elem)
std::string r_obname (const char *elem)
MutName r_mutname (const char *elem, GCPtr< const Serializable > container)
TrueName r_entname (const char *elem, GCPtr< const Serializable > container)
GCPtr< Serializablesdr_read (const char *elem)

Protected Member Functions

void autodetect_format ()
virtual void rfill ()=0
ocmoff_t do_read (void *, ocmoff_t len)
void refillIfNeeded ()

Detailed Description

Definition at line 90 of file SDR.hxx.


Constructor & Destructor Documentation

sdr::IStream::IStream Encoding  e  )  [inline]
 

Definition at line 102 of file SDR.hxx.

References sdr::Stream::rwbuf, sdr::Stream::rwlim, and sdr::Stream::rwptr.


Member Function Documentation

void sdr::IStream::autodetect_format  )  [protected]
 

Definition at line 420 of file SDR.cxx.

References sdr::BINARY, ExMalformed, sdr::Stream::format, getc(), sdr::Stream::name, sdr::RAW, and THROW.

Referenced by sdr::BufIStream::BufIStream(), sdr::FileIStream::FileIStream(), and sdr::MemIStream::MemIStream().

ocmoff_t sdr::IStream::do_read void *  ,
ocmoff_t  len
[protected]
 

Definition at line 534 of file SDR.cxx.

References getc().

Referenced by read().

char sdr::IStream::getc  )  [inline]
 

Definition at line 111 of file SDR.hxx.

References refillIfNeeded(), and sdr::Stream::rwptr.

Referenced by autodetect_format(), and do_read().

ocmoff_t sdr::IStream::length  )  [inline]
 

Definition at line 108 of file SDR.hxx.

char sdr::IStream::peekc  )  [inline]
 

Definition at line 112 of file SDR.hxx.

References refillIfNeeded(), and sdr::Stream::rwptr.

GCPtr< Buffer > sdr::IStream::r_buffer const char *  elem,
ocmoff_t  len
 

Definition at line 1176 of file SDR.cxx.

References sdr::Stream::format.

Referenced by sdr::sdr_r_buffer().

ByteString sdr::IStream::r_bytes const char *  elem,
uint32_t  len
 

Definition at line 1190 of file SDR.cxx.

References sdr::Stream::format.

Referenced by sdr::sdr_r_bytes().

TrueName sdr::IStream::r_entname const char *  elem,
GCPtr< const Serializable container
 

Definition at line 1299 of file SDR.cxx.

References sdr::Stream::format, r_obname(), and SERIALIZABLE_FIRST_METAVERSION.

Referenced by sdr::sdr_r_entname().

MutName sdr::IStream::r_mutname const char *  elem,
GCPtr< const Serializable container
 

Definition at line 1258 of file SDR.cxx.

References CM_MUTABLE_DESIGNATOR, ExVersionError, sdr::Stream::format, r_obname(), SERIALIZABLE_CURRENT_METAVERSION, and THROW.

Referenced by sdr::sdr_r_mutname().

std::string sdr::IStream::r_obname const char *  elem  ) 
 

Definition at line 1218 of file SDR.cxx.

References sdr::Stream::format.

Referenced by r_entname(), r_mutname(), and sdr::sdr_r_obname().

std::string sdr::IStream::r_string const char *  elem  ) 
 

Definition at line 1204 of file SDR.cxx.

References sdr::Stream::format.

Referenced by sdr::sdr_r_string().

uint16_t sdr::IStream::r_u16 const char *  elem  ) 
 

Definition at line 1134 of file SDR.cxx.

References sdr::Stream::format.

Referenced by sdr::sdr_r_u16().

uint32_t sdr::IStream::r_u32 const char *  elem  ) 
 

Definition at line 1148 of file SDR.cxx.

References sdr::Stream::format.

Referenced by Serializable::deserialize_meta(), and sdr::sdr_r_u32().

uint64_t sdr::IStream::r_u64 const char *  elem  ) 
 

Definition at line 1162 of file SDR.cxx.

References sdr::Stream::format.

Referenced by sdr::sdr_r_u64().

uint8_t sdr::IStream::r_u8 const char *  elem  ) 
 

Definition at line 1120 of file SDR.cxx.

References sdr::Stream::format.

Referenced by sdr::sdr_r_u8().

ocmoff_t sdr::IStream::read void *  vp,
ocmoff_t  len
[inline]
 

Definition at line 114 of file SDR.hxx.

References do_read(), sdr::Stream::rwlim, and sdr::Stream::rwptr.

Referenced by sdr::bin_r_bytes(), sdr::bin_r_obname(), sdr::bin_r_string(), and sdr_read().

Buffer sdr::IStream::readBuffer ocmoff_t  len  ) 
 

void sdr::IStream::refillIfNeeded  )  [inline, protected]
 

Definition at line 98 of file SDR.hxx.

References rfill(), sdr::Stream::rwlim, and sdr::Stream::rwptr.

Referenced by getc(), and peekc().

virtual void sdr::IStream::rfill  )  [protected, pure virtual]
 

Referenced by refillIfNeeded().

size_t sdr::IStream::scanf const char *  fmt,
  ...
 

GCPtr< Serializable > sdr::IStream::sdr_read const char *  elem  ) 
 

Definition at line 1320 of file SDR.cxx.

References sdr::Stream::format, and read().

Referenced by Serializable::deepCopy(), FSRepos::do_GetEntity(), Repository::GetEntity(), ObStoreFS::GetMutable(), and sdr::sdr_read().


The documentation for this class was generated from the following files:
Generated on Sun Apr 23 22:42:42 2006 for OpenCM by  doxygen 1.4.6