#include <BufferedTextInputStream.h>

Definition at line 23 of file BufferedTextInputStream.h.
Public Member Functions | |
| BufferedTextInputStream () | |
| BufferedTextInputStream (RawInputStream &input, const String &__lterm=NL) | |
| void | open (RawInputStream &input, const String &__lterm=NL) |
| ~BufferedTextInputStream () | |
| 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 () |
| 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 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. | |
| 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) |
| 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 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 |
| 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) |
| xvr2::BufferedTextInputStream::BufferedTextInputStream | ( | ) |
| xvr2::BufferedTextInputStream::BufferedTextInputStream | ( | RawInputStream & | input, | |
| const String & | __lterm = NL | |||
| ) |
| xvr2::BufferedTextInputStream::~BufferedTextInputStream | ( | ) |
| void xvr2::BufferedTextInputStream::open | ( | RawInputStream & | input, | |
| const String & | __lterm = NL | |||
| ) |
| void xvr2::BufferedTextInputStream::operator>> | ( | String & | s | ) |
| static void xvr2::BufferedTextInputStream::setDefaultBufferSize | ( | UInt32 | _size | ) | [static] |
| void xvr2::BufferedTextInputStream::setBufferSize | ( | UInt32 | _size | ) |
| UInt32 xvr2::BufferedTextInputStream::remaining | ( | ) |
Returns the amount of remaining bytes to be read.
| void xvr2::RawInputStream::open | ( | int | __fd | ) | [inherited] |
Reimplemented in xvr2::Net::RawSocketInputStream.
| void xvr2::RawInputStream::open | ( | const String & | fname | ) | [virtual, inherited] |
| virtual void xvr2::RawInputStream::close | ( | ) | [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.
| int xvr2::RawInputStream::fd | ( | ) | [inherited] |
| bool xvr2::RawInputStream::eof | ( | ) | [virtual, inherited] |
| virtual void xvr2::RawInputStream::seek | ( | FileOffsetT | _pos | ) | [virtual, inherited] |
| virtual void xvr2::RawInputStream::seekEnd | ( | ) | [virtual, inherited] |
| virtual void xvr2::RawInputStream::seekBegin | ( | ) | [virtual, inherited] |
| virtual void xvr2::RawInputStream::seekStep | ( | FileOffsetT | _step | ) | [virtual, inherited] |
| virtual bool xvr2::RawInputStream::ready | ( | int | timeout = 100 |
) | [virtual, inherited] |
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] |
| 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 bool xvr2::RawStreamInterface::opened | ( | ) | [virtual, inherited] |
Implements xvr2::StreamInterface.
| virtual FileSizeT xvr2::StreamInterface::size | ( | ) | [pure virtual, inherited] |
Implemented in xvr2::RawOutputStream, xvr2::RawStreamInterface, xvr2::StdioInterface, and xvr2::Net::RawSocketOutputStream.
| virtual FileSizeT xvr2::RawStreamInterface::size | ( | ) | [virtual, inherited] |
Implements xvr2::StreamInterface.
Reimplemented in xvr2::RawOutputStream, and xvr2::Net::RawSocketOutputStream.
| virtual FileOffsetT xvr2::StreamInterface::tell | ( | ) | [pure virtual, inherited] |
Implemented in xvr2::RawStreamInterface, and xvr2::StdioInterface.
| 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] |
| std::ostream& operator<< | ( | std::ostream & | stream, | |
| const Object & | s | |||
| ) | [friend, inherited] |
UInt32 xvr2::BufferedTextInputStream::_bufsize [protected] |
Definition at line 25 of file BufferedTextInputStream.h.
String xvr2::BufferedTextInputStream::buffer [protected] |
Definition at line 26 of file BufferedTextInputStream.h.
String xvr2::BufferedTextInputStream::_lterm [protected] |
Definition at line 27 of file BufferedTextInputStream.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.
1.5.5