#include <BasicFileLocation.h>
Public Member Functions | |
BasicFileLocation () | |
Construct a default BasicFileLocation with an empty value. | |
BasicFileLocation (const BasicFileLocation &x) | |
Copy constructor. | |
BasicFileLocation (const std::string filename, const long line, const long col) | |
virtual | ~BasicFileLocation () |
const std::string | getFilename () const |
const long | getLine () const |
const long | getCol () const |
bool | isEmpty () const |
Private Attributes | |
std::string | filename |
long | line |
long | col |
bool | empty |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const BasicFileLocation &fl) |
Print a file location to a stream. |
|
Construct a default BasicFileLocation with an empty value.
|
|
Copy constructor.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Print a file location to a stream. The format is as follows. filename[:line[:col]] If no line or column has been set then they will not be displayed.
|
|
|
|
|
|
|
|
|