xvr2::Net::BufferedSocketInputStream Class Reference

#include <BufferedSocketInputStream.h>

Inheritance diagram for xvr2::Net::BufferedSocketInputStream:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 24 of file BufferedSocketInputStream.h.


Public Member Functions

 BufferedSocketInputStream ()
 BufferedSocketInputStream (RawSocketInputStream &input, const String &__lterm=NL)
void open (RawSocketInputStream &input, const String &__lterm=NL)
 ~BufferedSocketInputStream ()
void operator>> (String &s)
void setBufferSize (UInt32 _size)
UInt32 remaining ()
 Returns the amount of remaining bytes to be read.
void open (int __fd)
void open (const String &fname)
virtual void close ()
void setFlags (int _f)
virtual UInt32 read (void *data, UInt32 size)
UInt32 read (UInt32 n)
UInt32 read (double n)
UInt32 read (UInt64 n)
virtual UInt32 read (Buffer &data, UInt32 size)
virtual ReadableStreamread (Buffer &b)
 Reads all data starting from the current position to the end of the file and returns it in a Buffer object.
bool eof ()
virtual void seek (FileOffsetT _pos) throw (StreamIsNotSeekable)
virtual void seekEnd () throw (StreamIsNotSeekable)
virtual void seekBegin () throw (StreamIsNotSeekable)
virtual void seekStep (FileOffsetT _step) throw (StreamIsNotSeekable)
int fd ()
virtual bool ready (int timeout=100)
virtual ReadableStreamoperator>> (UInt32 n)
virtual ReadableStreamoperator>> (double n)
virtual ReadableStreamoperator>> (UInt64 n)
virtual ReadableStreamreadAll (Buffer &b)
 Loads the full contents and returns it in a Buffer.
virtual void flush ()
virtual void setTimeout (int millisecs)
virtual bool opened ()=0
virtual bool opened ()
virtual FileSizeT size ()=0
virtual FileSizeT size ()
virtual FileOffsetT tell ()=0
virtual FileOffsetT tell ()
virtual const char * getClassName ()
 Returns the name of the current class.
virtual std::string toString ()

Static Public Member Functions

static void setDefaultBufferSize (UInt32 _size)
static void debugmsg (Object *obj, const char *msg, int linenumber=__LINE__, const char *srcfile=__FILE__)
 Will print a debug message to the screen.
static void debugmsgln (Object *obj, const char *msg, int linenumber=__LINE__, const char *srcfile=__FILE__)

Protected Attributes

UInt32 _bufsize
String buffer
String _lterm
int flags
bool handles_timeouts
int timeout_msecs
std::string __cls_name
int _fd
bool _a_close
bool _is_opened

Friends

std::ostream & operator<< (std::ostream &stream, const Object &s)

Constructor & Destructor Documentation

xvr2::Net::BufferedSocketInputStream::BufferedSocketInputStream (  ) 

xvr2::Net::BufferedSocketInputStream::BufferedSocketInputStream ( RawSocketInputStream input,
const String __lterm = NL 
)

xvr2::Net::BufferedSocketInputStream::~BufferedSocketInputStream (  ) 


Member Function Documentation

void xvr2::Net::BufferedSocketInputStream::open ( RawSocketInputStream input,
const String __lterm = NL 
)

void xvr2::Net::BufferedSocketInputStream::operator>> ( String s  ) 

static void xvr2::Net::BufferedSocketInputStream::setDefaultBufferSize ( UInt32  _size  )  [static]

void xvr2::Net::BufferedSocketInputStream::setBufferSize ( UInt32  _size  ) 

UInt32 xvr2::Net::BufferedSocketInputStream::remaining (  ) 

Returns the amount of remaining bytes to be read.

void xvr2::Net::RawSocketInputStream::open ( int  __fd  )  [inherited]

Reimplemented from xvr2::RawInputStream.

void xvr2::Net::RawSocketInputStream::open ( const String fname  )  [virtual, inherited]

Reimplemented from xvr2::RawInputStream.

virtual void xvr2::Net::RawSocketInputStream::close (  )  [virtual, inherited]

Reimplemented from xvr2::RawInputStream.

void xvr2::Net::RawSocketInputStream::setFlags ( int  _f  )  [inherited]

virtual UInt32 xvr2::Net::RawSocketInputStream::read ( void *  data,
UInt32  size 
) [virtual, inherited]

Reimplemented from xvr2::RawInputStream.

UInt32 xvr2::ReadableStream::read ( UInt32  n  )  [inherited]

UInt32 xvr2::ReadableStream::read ( double  n  )  [inherited]

UInt32 xvr2::ReadableStream::read ( UInt64  n  )  [inherited]

virtual UInt32 xvr2::ReadableStream::read ( Buffer data,
UInt32  size 
) [virtual, inherited]

Reimplemented in xvr2::StdioInputFile.

virtual ReadableStream& xvr2::ReadableStream::read ( Buffer b  )  [virtual, inherited]

Reads all data starting from the current position to the end of the file and returns it in a Buffer object.

Reimplemented in xvr2::StdioInputFile.

bool xvr2::Net::RawSocketInputStream::eof (  )  [virtual, inherited]

Reimplemented from xvr2::RawInputStream.

virtual void xvr2::Net::RawSocketInputStream::seek ( FileOffsetT  _pos  )  throw (StreamIsNotSeekable) [virtual, inherited]

Reimplemented from xvr2::RawInputStream.

virtual void xvr2::Net::RawSocketInputStream::seekEnd (  )  throw (StreamIsNotSeekable) [virtual, inherited]

Reimplemented from xvr2::RawInputStream.

virtual void xvr2::Net::RawSocketInputStream::seekBegin (  )  throw (StreamIsNotSeekable) [virtual, inherited]

Reimplemented from xvr2::RawInputStream.

virtual void xvr2::Net::RawSocketInputStream::seekStep ( FileOffsetT  _step  )  throw (StreamIsNotSeekable) [virtual, inherited]

Reimplemented from xvr2::RawInputStream.

int xvr2::RawInputStream::fd (  )  [inherited]

virtual bool xvr2::RawInputStream::ready ( int  timeout = 100  )  [virtual, inherited]

virtual ReadableStream& xvr2::ReadableStream::operator>> ( UInt32  n  )  [virtual, inherited]

virtual ReadableStream& xvr2::ReadableStream::operator>> ( double  n  )  [virtual, inherited]

virtual ReadableStream& xvr2::ReadableStream::operator>> ( UInt64  n  )  [virtual, inherited]

virtual ReadableStream& xvr2::ReadableStream::readAll ( Buffer b  )  [virtual, inherited]

Loads the full contents and returns it in a Buffer.

Reimplemented in xvr2::StdioInputFile.

virtual void xvr2::ReadableStream::flush (  )  [virtual, inherited]

Implements xvr2::StreamInterface.

Reimplemented in xvr2::StdioInputFile.

virtual void xvr2::ReadableStream::setTimeout ( int  millisecs  )  [inline, virtual, inherited]

Definition at line 79 of file StreamInterface.h.

References xvr2::ReadableStream::timeout_msecs.

virtual bool xvr2::StreamInterface::opened (  )  [pure virtual, inherited]

virtual bool xvr2::RawStreamInterface::opened (  )  [virtual, inherited]

Implements xvr2::StreamInterface.

virtual FileSizeT xvr2::StreamInterface::size (  )  [pure virtual, inherited]

virtual FileSizeT xvr2::RawStreamInterface::size (  )  [virtual, inherited]

virtual FileOffsetT xvr2::StreamInterface::tell (  )  [pure virtual, inherited]

virtual FileOffsetT xvr2::RawStreamInterface::tell (  )  [virtual, inherited]

Implements xvr2::StreamInterface.

virtual const char* xvr2::Object::getClassName (  )  [virtual, inherited]

Returns the name of the current class.

static void xvr2::Object::debugmsg ( Object obj,
const char *  msg,
int  linenumber = __LINE__,
const char *  srcfile = __FILE__ 
) [static, inherited]

Will print a debug message to the screen.

static void xvr2::Object::debugmsgln ( Object obj,
const char *  msg,
int  linenumber = __LINE__,
const char *  srcfile = __FILE__ 
) [static, inherited]

virtual std::string xvr2::Object::toString (  )  [virtual, inherited]


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const Object s 
) [friend, inherited]


Member Data Documentation

Definition at line 26 of file BufferedSocketInputStream.h.

Definition at line 27 of file BufferedSocketInputStream.h.

Definition at line 28 of file BufferedSocketInputStream.h.

int xvr2::Net::RawSocketInputStream::flags [protected, inherited]

Definition at line 28 of file RawSocketInputStream.h.

bool xvr2::ReadableStream::handles_timeouts [protected, inherited]

Definition at line 58 of file StreamInterface.h.

Referenced by xvr2::ReadableStream::ReadableStream().

int xvr2::ReadableStream::timeout_msecs [protected, inherited]

std::string xvr2::Object::__cls_name [protected, inherited]

Definition at line 30 of file Object.h.

int xvr2::RawStreamInterface::_fd [protected, inherited]

Definition at line 21 of file RawStreamInterface.h.

bool xvr2::RawStreamInterface::_a_close [protected, inherited]

Definition at line 22 of file RawStreamInterface.h.

bool xvr2::RawStreamInterface::_is_opened [protected, inherited]

Definition at line 23 of file RawStreamInterface.h.


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

Generated on Fri Jun 20 22:56:00 2008 for X-VR2 SDK by  doxygen 1.5.5