OpenWalnut  1.2.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
WRoiProjectFileIO Class Reference

IO Class for writing the ROI structure to a project file. More...

#include <WRoiProjectFileIO.h>

+ Inheritance diagram for WRoiProjectFileIO:

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.
- Public Member Functions inherited from WProjectFileIO
 WProjectFileIO ()
 Default constructor.
virtual ~WProjectFileIO ()
 Destructor.

Detailed Description

IO Class for writing the ROI structure to a project file.

Definition at line 37 of file WRoiProjectFileIO.h.

Constructor & Destructor Documentation

WRoiProjectFileIO::WRoiProjectFileIO ( )

Default constructor.

Definition at line 31 of file WRoiProjectFileIO.cpp.

WRoiProjectFileIO::~WRoiProjectFileIO ( )
virtual

Destructor.

Definition at line 37 of file WRoiProjectFileIO.cpp.

Member Function Documentation

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.

Parameters
linethe current line as string
lineNumberthe current line number. Useful for error/warning/debugging output.
Returns
true if the line could be parsed.

Implements WProjectFileIO.

Definition at line 42 of file WRoiProjectFileIO.cpp.

void WRoiProjectFileIO::save ( std::ostream &  output)
virtual

Saves the state to the specified stream.

Parameters
outputthe stream to print the state to.

Implements WProjectFileIO.

Definition at line 53 of file WRoiProjectFileIO.cpp.

References wlog::info().


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