Source line info with filename reference for error messages. More...
#include <fileLineInfo.hpp>
Public Types | |
typedef boost::shared_ptr< char > | FileName |
Public Member Functions | |
FileLineInfo () | |
FileLineInfo (const std::string &filename_) | |
FileLineInfo (unsigned int line_, unsigned int column_) | |
FileLineInfo (const std::string &filename_, unsigned int line_, unsigned int column_) | |
FileLineInfo (const FileLineInfo &o) | |
const char * | filename () const |
void | setFileName (const FileName &filename_) |
std::string | logtext () const |
std::string | logtext_short () const |
Public Member Functions inherited from _Wolframe::utils::SourceLineInfo | |
SourceLineInfo () | |
Default constructor. More... | |
SourceLineInfo (unsigned int line_, unsigned int column_) | |
Constructor. More... | |
SourceLineInfo (const SourceLineInfo &o) | |
Copy constructor. More... | |
unsigned int | line () const |
Get the current line. More... | |
unsigned int | column () const |
Get the current column. More... | |
void | incrementLine () |
Increment the current line. More... | |
void | incrementColumn () |
Increment the current column. More... | |
void | update (const std::string::const_iterator &lastpos, const std::string::const_iterator &pos) |
Update this line info by scanning the source parsed from 'lastpos' to 'pos', counting lines and characters inbetween. More... | |
Static Public Member Functions | |
static FileName | getFileName (const std::string &name) |
Private Attributes | |
FileName | m_filename |
Source line info with filename reference for error messages.
typedef boost::shared_ptr<char> _Wolframe::utils::FileLineInfo::FileName |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
std::string _Wolframe::utils::FileLineInfo::logtext | ( | ) | const |
std::string _Wolframe::utils::FileLineInfo::logtext_short | ( | ) | const |
|
inline |
|
private |
Copyright © 2014 - Project Wolframe - All Rights Reserved