#include <Externalizable.hpp>
Public Member Functions | |
Externalizable () | |
virtual | ~Externalizable () |
virtual void | load (const bfs::path &path)=0 throw (std::invalid_argument) |
virtual void | save (const bfs::path &path)=0 throw (std::invalid_argument) |
An interface to serialize an objects into a file and vice versa. Classes that implement this interface can be loaded from or saved to a file.
Created on Jun 22, 2008
Definition at line 26 of file Externalizable.hpp.
aitools::invertedindex::Externalizable::Externalizable | ( | ) | [inline] |
The default constructor.
Definition at line 33 of file Externalizable.hpp.
virtual aitools::invertedindex::Externalizable::~Externalizable | ( | ) | [inline, virtual] |
The destructor.
Definition at line 38 of file Externalizable.hpp.
virtual void aitools::invertedindex::Externalizable::load | ( | const bfs::path & | path | ) | throw (std::invalid_argument) [pure virtual] |
Load the object from a file.
file | the path to the file |
Implemented in aitools::invertedindex::MPHashFunction, and aitools::invertedindex::Vocabulary.
virtual void aitools::invertedindex::Externalizable::save | ( | const bfs::path & | path | ) | throw (std::invalid_argument) [pure virtual] |
Save the object to a file.
file | the path to the file |
Implemented in aitools::invertedindex::MPHashFunction, and aitools::invertedindex::Vocabulary.