32 #ifndef BufferedStream_INCLUDE_ONCE 33 #define BufferedStream_INCLUDE_ONCE 48 template<
class Element_Type,
int Chunk_Size>
102 Element_Type ch2 = 0;
long long read(void *buffer, long long byte_count)
Reads byte_count bytes from a file. Returns the number of bytes actually read.
An abstract class representing a file.
void ungetToken(const Element_Type &token)
bool readToken(Element_Type *token)
const VirtualFile * inputFile() const
bool readTextChar(Element_Type &ch)
The BufferedStream class is a template class that that performs a buffered read of Element_Type data ...
VirtualFile * inputFile()
std::vector< Element_Type > mBuffer
void setInputFile(VirtualFile *file)
#define VL_INSTRUMENT_CLASS(ClassName, BaseClass)
Visualization Library main namespace.
std::vector< Element_Type > mUngetBuffer
The base class for all the reference counted objects.
bool seekSet(long long offset)
Changes the current read/write position of a file.
ref< VirtualFile > mInputFile
The ref<> class is used to reference-count an Object.