#include <annfilef.h>
Static Public Methods | |
ANNetwork * | load (const String &filename) throw (file_not_found, invalid_format, assertion_failed) |
void | load (const String &filename, ANNetwork &net) throw (file_not_found, invalid_format, assertion_failed, open_failure) |
void | load (TextIStream &in, ANNetwork &net, const String &filetype) throw (invalid_format, assertion_failed) |
void | save (const String &filename, const ANNetwork &net, const char *fileformat=NULL) throw (invalid_filename, invalid_format, assertion_failed, stream_failure, open_failure) |
void | save (TextOStream &out, const ANNetwork &net, const String &filetype) throw (assertion_failed, invalid_filename, stream_failure) |
Static Protected Methods | |
ANNFileFormat * | create (const String &fileformat) throw (invalid_format) |
Patterns:
Definition at line 49 of file annfilef.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 144 of file annfilef.cc. |
|
Loads network from the given stream.
Definition at line 64 of file annfilef.cc. References ANNFileFormat::load(). |
|
Tries to load the given file to the given network.
Definition at line 43 of file annfilef.cc. |
|
Creates a network from the given file.
|
|
Writes the given network to file with the given name. File format can also be specified.
Definition at line 121 of file annfilef.cc. References ANNFileFormat::save(). |
|
Writes the given network to file with the given name. File format can also be specified.
Definition at line 83 of file annfilef.cc. |