#include <BasicFileLocation.h>
Public Member Functions | |
| BasicFileLocation () | |
| BasicFileLocation (const BasicFileLocation &x) | |
| 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) |
Definition at line 36 of file BasicFileLocation.h.
| BasicFileLocation::BasicFileLocation | ( | ) | [inline] |
Construct a default BasicFileLocation with an empty value.
Definition at line 46 of file BasicFileLocation.h.
| BasicFileLocation::BasicFileLocation | ( | const BasicFileLocation & | x | ) | [inline] |
Copy constructor.
Definition at line 51 of file BasicFileLocation.h.
| BasicFileLocation::BasicFileLocation | ( | const std::string | filename, | |
| const long | line, | |||
| const long | col | |||
| ) | [inline] |
| filename | The name of the file. | |
| line | The line with that file. | |
| col | The column on that line. |
Definition at line 59 of file BasicFileLocation.h.
| virtual BasicFileLocation::~BasicFileLocation | ( | ) | [inline, virtual] |
Definition at line 63 of file BasicFileLocation.h.
| const std::string BasicFileLocation::getFilename | ( | ) | const [inline] |
Definition at line 65 of file BasicFileLocation.h.
References filename.
Referenced by CC3DTransaction::simulationThreadPython().
| const long BasicFileLocation::getLine | ( | ) | const [inline] |
Definition at line 70 of file BasicFileLocation.h.
References line.
Referenced by CC3DTransaction::simulationThreadPython().
| const long BasicFileLocation::getCol | ( | ) | const [inline] |
Definition at line 75 of file BasicFileLocation.h.
References col.
| bool BasicFileLocation::isEmpty | ( | ) | const [inline] |
Definition at line 80 of file BasicFileLocation.h.
References empty.
Referenced by operator<<(), and BasicException::print().
| std::ostream& operator<< | ( | std::ostream & | stream, | |
| const BasicFileLocation & | fl | |||
| ) | [friend] |
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.
std::string BasicFileLocation::filename [private] |
long BasicFileLocation::line [private] |
long BasicFileLocation::col [private] |
bool BasicFileLocation::empty [private] |
1.5.6