OpenWalnut 1.2.5
|
IO Class for writing the ROI structure to a project file. More...
#include <WRoiProjectFileIO.h>
Public Member Functions | |
WRoiProjectFileIO () | |
Default constructor. | |
virtual | ~WRoiProjectFileIO () |
Destructor. | |
virtual bool | parse (std::string line, unsigned int lineNumber) |
This method parses the specified line and interprets it. | |
virtual void | done () |
Called whenever the end of the project file has been reached. | |
virtual void | save (std::ostream &output) |
Saves the state to the specified stream. |
IO Class for writing the ROI structure to a project file.
Definition at line 37 of file WRoiProjectFileIO.h.
WRoiProjectFileIO::WRoiProjectFileIO | ( | ) |
Default constructor.
Definition at line 31 of file WRoiProjectFileIO.cpp.
WRoiProjectFileIO::~WRoiProjectFileIO | ( | ) | [virtual] |
Destructor.
Definition at line 37 of file WRoiProjectFileIO.cpp.
void WRoiProjectFileIO::done | ( | ) | [virtual] |
Called whenever the end of the project file has been reached.
This is useful if your specific parser class wants to do some post processing after parsing line by line.
Reimplemented from WProjectFileIO.
Definition at line 48 of file WRoiProjectFileIO.cpp.
bool WRoiProjectFileIO::parse | ( | std::string | line, |
unsigned int | lineNumber | ||
) | [virtual] |
This method parses the specified line and interprets it.
It gets called line by line by WProjectFile.
line | the current line as string |
lineNumber | the current line number. Useful for error/warning/debugging output. |
Implements WProjectFileIO.
Definition at line 42 of file WRoiProjectFileIO.cpp.
void WRoiProjectFileIO::save | ( | std::ostream & | output | ) | [virtual] |
Saves the state to the specified stream.
output | the stream to print the state to. |
Implements WProjectFileIO.
Definition at line 53 of file WRoiProjectFileIO.cpp.
References wlog::info().