#include <dataformat.h>
Static Public Methods | |
void | load (const String &filename, PatternSet &set) throw (file_not_found, invalid_format, assertion_failed) |
void | load (TextIStream &in, PatternSet &set, const String &filetype=".raw") throw (invalid_format, assertion_failed) |
void | save (const String &filename, const PatternSet &set) throw (invalid_filename) |
Static Protected Methods | |
DataFormat * | create (const String &filename) |
Patterns:
Definition at line 37 of file dataformat.h.
|
Factory creates a data format handler according to filename. To make the factory more extensible, there would need to be some sort of dynamic registry of Factory Methods. Definition at line 113 of file dataformat.cc. |
|
Loads pattern set from the given stream.
Definition at line 75 of file dataformat.cc. References DataFormat::load(). |
|
Tries to load the given file to the given pattern set.
Definition at line 45 of file dataformat.cc. Referenced by PatternSet::load(). |
|
Tries to load the given file to the given pattern set.
Definition at line 91 of file dataformat.cc. References DataFormat::save(). Referenced by PatternSet::save(). |