Parasol Planning Library (PPL)
CountingStreamBuffer Class Referencefinal

#include <CountingStreamBuffer.h>

Inheritance diagram for CountingStreamBuffer:
Inheritance graph
[legend]
Collaboration diagram for CountingStreamBuffer:
Collaboration graph
[legend]

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() [1/2]

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

◆ CountingStreamBuffer() [2/2]

CountingStreamBuffer::CountingStreamBuffer ( const CountingStreamBuffer )
delete

Member Function Documentation

◆ Column()

size_t CountingStreamBuffer::Column ( ) const
Returns
Current column

◆ FilePos()

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

◆ LineNumber()

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

◆ operator=()

CountingStreamBuffer& CountingStreamBuffer::operator= ( const CountingStreamBuffer )
delete

◆ PrevLineNumber()

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

◆ Where()

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

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