PPL API Reference
Overview Core Algorithm Abstractions Utilities Parallel Methods
Modules Class Hierarchy Classes Functions
Todo List Bug List Dead Code
List of all members
CountingStreamBuffer Class Referencefinal

Public Member Functions

Construction
 CountingStreamBuffer (const std::string &_filename)
 
 CountingStreamBuffer (const CountingStreamBuffer &)=delete
 
CountingStreamBufferoperator= (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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ CountingStreamBuffer()

CountingStreamBuffer::CountingStreamBuffer ( const std::string &  _filename)
Parameters
_filenameFilename

Member Function Documentation

◆ LineNumber()

size_t CountingStreamBuffer::LineNumber ( ) const
Returns
Current line number

◆ PrevLineNumber()

size_t CountingStreamBuffer::PrevLineNumber ( ) const
Returns
Line number of previously read character

◆ Column()

size_t CountingStreamBuffer::Column ( ) const
Returns
Current column

◆ FilePos()

streamsize CountingStreamBuffer::FilePos ( ) const
Returns
Current file position

◆ Where()

string CountingStreamBuffer::Where ( ) const
Returns
String describing current file position

The documentation for this class was generated from the following files: