aitools::invertedindex::Externalizable Class Reference

#include <Externalizable.hpp>

List of all members.

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)

Detailed Description

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.

Author:
martin.trenkmann@uni-weimar.de

Created on Jun 22, 2008

Id
Externalizable.hpp,v 1.7 2010/05/11 23:41:08 trenkman Exp

Definition at line 26 of file Externalizable.hpp.


Constructor & Destructor Documentation

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.


Member Function Documentation

virtual void aitools::invertedindex::Externalizable::load ( const bfs::path &  path  )  throw (std::invalid_argument) [pure virtual]

Load the object from a file.

Parameters:
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.

Parameters:
file the path to the file

Implemented in aitools::invertedindex::MPHashFunction, and aitools::invertedindex::Vocabulary.


The documentation for this class was generated from the following file:
Generated on Wed May 30 15:07:32 2012 by  doxygen 1.6.3