#include <fileio.h>
Public Types | |
| typedef STD_map< Protocol, Data< float, 4 > > | ProtocolDataMap |
Static Public Member Functions | |
| static int | autoread (ProtocolDataMap &pdmap, const STD_string &filename, const FileReadOpts &opts, const Protocol &protocol_template, ProgressMeter *progmeter=0) |
| static int | autowrite (const ProtocolDataMap &pdmap, const STD_string &filename, const FileWriteOpts &opts) |
| static svector | autoformats () |
| static STD_string | autoformats_str (const STD_string &indent="") |
| static bool | get_trace_status () |
| static void | set_trace_status (bool stat) |
Definition at line 52 of file fileio.h.
| typedef STD_map<Protocol, Data<float,4> > FileIO::ProtocolDataMap |
| static int FileIO::autoread | ( | ProtocolDataMap & | pdmap, | |
| const STD_string & | filename, | |||
| const FileReadOpts & | opts, | |||
| const Protocol & | protocol_template, | |||
| ProgressMeter * | progmeter = 0 | |||
| ) | [static] |
Reads in file 'filename' and appends all data sets found to protocol-data map 'pdmap', autodetects file format according to file extension. Read options are given by 'opts' and 'protocol_template' contains defaults used by the decoder/encoder of the particular file format. The progress meter 'progmeter' can be optionally specified to monitor the progress of the operation. Returns number of slices, or -1 if it fails.
| static int FileIO::autowrite | ( | const ProtocolDataMap & | pdmap, | |
| const STD_string & | filename, | |||
| const FileWriteOpts & | opts | |||
| ) | [static] |
Writes out protocol-data map 'pdmap' to file(s) filename, autodetects file format according to file extension. Write options are given by 'opts'. Returns number of slices sucessfully written, or -1 if it fails.
| static svector FileIO::autoformats | ( | ) | [static] |
Returns possible file formats/extensions to autoread autowrite
| static STD_string FileIO::autoformats_str | ( | const STD_string & | indent = "" |
) | [static] |
Returns possible file formats as string with comment
| static bool FileIO::get_trace_status | ( | ) | [inline, static] |
| static void FileIO::set_trace_status | ( | bool | stat | ) | [inline, static] |
1.5.1