![]() |
Parasol Planning Library (PPL)
|
#include <CountingStreamBuffer.h>
Public Member Functions | |
Construction | |
CountingStreamBuffer (const std::string &_filename) | |
CountingStreamBuffer (const CountingStreamBuffer &)=delete | |
CountingStreamBuffer & | operator= (const CountingStreamBuffer &)=delete |
I/O Interface | |
size_t | LineNumber () const |
size_t | PrevLineNumber () const |
size_t | Column () const |
std::streamsize | FilePos () const |
std::string | Where () const |
Specialization of std::streambuf that gives us detailed information about where parsing errors occur within input files.
@TODO This class appears to be implemented incorrectly - it is used as a stand-alone object rather than a streambuf for an input stream. We should rectify this by removing m_fileStream and m_streamBuffer so that it can be used properly.
CountingStreamBuffer::CountingStreamBuffer | ( | const std::string & | _filename | ) |
_filename | Filename |
|
delete |
size_t CountingStreamBuffer::Column | ( | ) | const |
streamsize CountingStreamBuffer::FilePos | ( | ) | const |
size_t CountingStreamBuffer::LineNumber | ( | ) | const |
|
delete |
size_t CountingStreamBuffer::PrevLineNumber | ( | ) | const |
string CountingStreamBuffer::Where | ( | ) | const |