#include <File.h>
Public Types | |
| enum | modeFlags { FILE_OUT = 0, FILE_IN } |
| the mode i.e. input or output More... | |
Public Member Functions | |
| File (const std::string filename_, modeFlags mode_=FILE_OUT, bool append=false, bool loop_=false, bool ot11Format_=false) | |
| ~File () | |
| void | write (Event &event, int station) |
| bool | read (Event &event, int *station) |
| bool | reset () |
Public Attributes | |
| const std::string | filename |
| the full filename | |
| const enum ot::File::modeFlags | mode |
| the mode i.e. input or output | |
Protected Attributes | |
| std::ofstream * | output |
| Output stream for output mode. | |
| std::ifstream * | input |
| Input stream for input mode. | |
| bool | loop |
| flag for looping | |
| bool | ot11Format |
| flag whether to use OT v1.1 compatible file format (for testing purposes only) | |
Friends | |
| class | FileModule |
|
|
the mode i.e. input or output
|
|
||||||||||||||||||||||||
|
constructor method, sets some default values and opens the file in the correct mode.
|
|
|
destructor, closes the streams and deletes them again |
|
||||||||||||
|
tries to read in the next station data, stored in the input file, only useable if File object was opened in input mode. Here you should be able to read in the right format :) ( obviously ).
|
|
|
resets the input file
|
|
||||||||||||
|
writes a event to the output stream, only useable if File object was opened in output mode. Here you can do any special formatting etc.
|
|
|
|
|
|
the full filename
|
|
|
Input stream for input mode.
|
|
|
flag for looping
|
|
|
the mode i.e. input or output
|
|
|
flag whether to use OT v1.1 compatible file format (for testing purposes only)
|
|
|
Output stream for output mode.
|
1.4.6