Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [Tutorials] [All Classes] [Grouped Classes] |
The BufferedStream class is a template class that that performs a buffered read of Element_Type data from a VirtualFile. More...
#include <BufferedStream.hpp>
Public Member Functions | |
BufferedStream () | |
void | seek (long long pos) |
bool | readToken (Element_Type *token) |
bool | readTextChar (Element_Type &ch) |
void | ungetToken (const Element_Type &token) |
bool | bufferEmpty () |
int | fillBuffer () |
bool | isEndOfFile () const |
void | setInputFile (VirtualFile *file) |
VirtualFile * | inputFile () |
const VirtualFile * | inputFile () const |
Protected Attributes | |
ref< VirtualFile > | mInputFile |
std::vector< Element_Type > | mUngetBuffer |
std::vector< Element_Type > | mBuffer |
int | mPtr |
int | mSize |
bool | mIsEndOfFile |
The BufferedStream class is a template class that that performs a buffered read of Element_Type data from a VirtualFile.
Definition at line 49 of file BufferedStream.hpp.
vl::BufferedStream< Element_Type, Chunk_Size >::BufferedStream | ( | ) | [inline] |
Definition at line 54 of file BufferedStream.hpp.
void vl::BufferedStream< Element_Type, Chunk_Size >::seek | ( | long long | pos ) | [inline] |
Definition at line 62 of file BufferedStream.hpp.
Referenced by vl::loadMOL2().
bool vl::BufferedStream< Element_Type, Chunk_Size >::readToken | ( | Element_Type * | token ) | [inline] |
Definition at line 70 of file BufferedStream.hpp.
Referenced by vl::BufferedStream< char, 128 *1024 >::readTextChar().
bool vl::BufferedStream< Element_Type, Chunk_Size >::readTextChar | ( | Element_Type & | ch ) | [inline] |
Definition at line 97 of file BufferedStream.hpp.
void vl::BufferedStream< Element_Type, Chunk_Size >::ungetToken | ( | const Element_Type & | token ) | [inline] |
Definition at line 121 of file BufferedStream.hpp.
Referenced by vl::BufferedStream< char, 128 *1024 >::readTextChar().
bool vl::BufferedStream< Element_Type, Chunk_Size >::bufferEmpty | ( | ) | [inline] |
Definition at line 126 of file BufferedStream.hpp.
Referenced by vl::BufferedStream< char, 128 *1024 >::readToken().
int vl::BufferedStream< Element_Type, Chunk_Size >::fillBuffer | ( | ) | [inline] |
Definition at line 131 of file BufferedStream.hpp.
Referenced by vl::BufferedStream< char, 128 *1024 >::readToken().
bool vl::BufferedStream< Element_Type, Chunk_Size >::isEndOfFile | ( | ) | const [inline] |
Definition at line 149 of file BufferedStream.hpp.
void vl::BufferedStream< Element_Type, Chunk_Size >::setInputFile | ( | VirtualFile * | file ) | [inline] |
Definition at line 151 of file BufferedStream.hpp.
Referenced by vl::STLLoader::loadAscii(), vl::loadMOL2(), and vl::VLXSerializer::loadVLT().
VirtualFile* vl::BufferedStream< Element_Type, Chunk_Size >::inputFile | ( | ) | [inline] |
Definition at line 157 of file BufferedStream.hpp.
Referenced by vl::BufferedStream< char, 128 *1024 >::fillBuffer(), and vl::BufferedStream< char, 128 *1024 >::seek().
const VirtualFile* vl::BufferedStream< Element_Type, Chunk_Size >::inputFile | ( | ) | const [inline] |
Definition at line 159 of file BufferedStream.hpp.
ref<VirtualFile> vl::BufferedStream< Element_Type, Chunk_Size >::mInputFile [protected] |
Definition at line 162 of file BufferedStream.hpp.
Referenced by vl::BufferedStream< char, 128 *1024 >::inputFile(), and vl::BufferedStream< char, 128 *1024 >::setInputFile().
std::vector<Element_Type> vl::BufferedStream< Element_Type, Chunk_Size >::mUngetBuffer [protected] |
Definition at line 163 of file BufferedStream.hpp.
Referenced by vl::BufferedStream< char, 128 *1024 >::readToken(), and vl::BufferedStream< char, 128 *1024 >::ungetToken().
std::vector<Element_Type> vl::BufferedStream< Element_Type, Chunk_Size >::mBuffer [protected] |
Definition at line 164 of file BufferedStream.hpp.
Referenced by vl::BufferedStream< char, 128 *1024 >::BufferedStream(), vl::BufferedStream< char, 128 *1024 >::fillBuffer(), and vl::BufferedStream< char, 128 *1024 >::readToken().
int vl::BufferedStream< Element_Type, Chunk_Size >::mPtr [protected] |
Definition at line 165 of file BufferedStream.hpp.
Referenced by vl::BufferedStream< char, 128 *1024 >::BufferedStream(), vl::BufferedStream< char, 128 *1024 >::bufferEmpty(), vl::BufferedStream< char, 128 *1024 >::fillBuffer(), vl::BufferedStream< char, 128 *1024 >::readToken(), and vl::BufferedStream< char, 128 *1024 >::seek().
int vl::BufferedStream< Element_Type, Chunk_Size >::mSize [protected] |
bool vl::BufferedStream< Element_Type, Chunk_Size >::mIsEndOfFile [protected] |