#include <RawInputStream.h>
Definition at line 24 of file RawInputStream.h.
Public Member Functions | |
RawInputStream () | |
virtual | ~RawInputStream () |
RawInputStream (int __fd) | |
RawInputStream (const String &fname) | |
void | open (int __fd) |
void | open (const String &fname) |
virtual void | close () |
virtual UInt32 | read (void *data, UInt32 size) |
int | fd () |
bool | eof () |
virtual void | seek (FileOffsetT _pos) |
virtual void | seekEnd () |
virtual void | seekBegin () |
virtual void | seekStep (FileOffsetT _step) |
virtual bool | ready (int timeout=100) |
virtual ReadableStream & | operator>> (UInt32 n) |
virtual ReadableStream & | operator>> (double n) |
virtual ReadableStream & | operator>> (UInt64 n) |
UInt32 | read (UInt32 n) |
UInt32 | read (double n) |
UInt32 | read (UInt64 n) |
virtual UInt32 | read (Buffer &data, UInt32 size) |
virtual ReadableStream & | read (Buffer &b) |
Reads all data starting from the current position to the end of the file and returns it in a Buffer object. | |
virtual ReadableStream & | readAll (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 FileSizeT | size ()=0 |
virtual FileOffsetT | tell ()=0 |
virtual const char * | getClassName () |
Returns the name of the current class. | |
virtual std::string | toString () |
virtual FileSizeT | size () |
virtual FileOffsetT | tell () |
virtual bool | opened () |
Static Public Member Functions | |
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 | |
bool | handles_timeouts |
int | timeout_msecs |
std::string | __cls_name |
int | _fd |
bool | _a_close |
bool | _is_opened |
Private Attributes | |
bool | reached_eof |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const Object &s) |
xvr2::RawInputStream::RawInputStream | ( | ) |
virtual xvr2::RawInputStream::~RawInputStream | ( | ) | [virtual] |
xvr2::RawInputStream::RawInputStream | ( | int | __fd | ) |
xvr2::RawInputStream::RawInputStream | ( | const String & | fname | ) |
void xvr2::RawInputStream::open | ( | int | __fd | ) |
Reimplemented in xvr2::Net::RawSocketInputStream.
void xvr2::RawInputStream::open | ( | const String & | fname | ) | [virtual] |
virtual void xvr2::RawInputStream::close | ( | ) | [virtual] |
int xvr2::RawInputStream::fd | ( | ) |
bool xvr2::RawInputStream::eof | ( | ) | [virtual] |
virtual void xvr2::RawInputStream::seek | ( | FileOffsetT | _pos | ) | [virtual] |
virtual void xvr2::RawInputStream::seekEnd | ( | ) | [virtual] |
virtual void xvr2::RawInputStream::seekBegin | ( | ) | [virtual] |
virtual void xvr2::RawInputStream::seekStep | ( | FileOffsetT | _step | ) | [virtual] |
virtual bool xvr2::RawInputStream::ready | ( | int | timeout = 100 |
) | [virtual] |
Implements xvr2::RawStreamInterface.
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] |
UInt32 xvr2::ReadableStream::read | ( | double | n | ) | [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.
virtual ReadableStream& xvr2::ReadableStream::readAll | ( | Buffer & | b | ) | [virtual, inherited] |
virtual void xvr2::ReadableStream::flush | ( | ) | [virtual, inherited] |
virtual void xvr2::ReadableStream::setTimeout | ( | int | millisecs | ) | [inline, virtual, inherited] |
virtual bool xvr2::StreamInterface::opened | ( | ) | [pure virtual, inherited] |
Implemented in xvr2::RawStreamInterface, xvr2::StdioInputFile, and xvr2::StdioOutputFile.
virtual FileSizeT xvr2::StreamInterface::size | ( | ) | [pure virtual, inherited] |
Implemented in xvr2::RawOutputStream, xvr2::RawStreamInterface, xvr2::StdioInterface, and xvr2::Net::RawSocketOutputStream.
virtual FileOffsetT xvr2::StreamInterface::tell | ( | ) | [pure virtual, inherited] |
Implemented in xvr2::RawStreamInterface, and xvr2::StdioInterface.
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] |
virtual FileSizeT xvr2::RawStreamInterface::size | ( | ) | [virtual, inherited] |
Implements xvr2::StreamInterface.
Reimplemented in xvr2::RawOutputStream, and xvr2::Net::RawSocketOutputStream.
virtual FileOffsetT xvr2::RawStreamInterface::tell | ( | ) | [virtual, inherited] |
Implements xvr2::StreamInterface.
virtual bool xvr2::RawStreamInterface::opened | ( | ) | [virtual, inherited] |
Implements xvr2::StreamInterface.
std::ostream& operator<< | ( | std::ostream & | stream, | |
const Object & | s | |||
) | [friend, inherited] |
bool xvr2::RawInputStream::reached_eof [private] |
Definition at line 26 of file RawInputStream.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] |
Definition at line 59 of file StreamInterface.h.
Referenced by xvr2::ReadableStream::ReadableStream(), and xvr2::ReadableStream::setTimeout().
std::string xvr2::Object::__cls_name [protected, inherited] |
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.