- Added other two dialogs for the gui

- Added exception specifications to the methods of the serializer interface and xml plugin

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@821 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
elvez 2006-08-04 00:29:37 +00:00
parent 56d7ddbc5a
commit 974702af3e
10 changed files with 678 additions and 48 deletions

View file

@ -34,6 +34,8 @@ namespace sgpem
#include "config.h"
#include "serializer_error.hh"
#include <glibmm/ustring.h>
namespace sgpem
@ -54,45 +56,45 @@ namespace sgpem
/**
\brief Add output to the serializer taking data from history
*/
virtual void from_history(const History& obj) = 0;
virtual void from_history(const History& obj) throw(SerializerError) = 0;
/**
\brief Add output to the serializer taking data from environment
*/
virtual void from_environment(const Environment& obj) = 0;
virtual void from_environment(const Environment& obj) throw(SerializerError) = 0;
/**
\brief Add output to the serializer taking data from resource
BUG: a resource must be saved with her own associated key.
*/
virtual void from_resource(const Resource& obj) = 0;
virtual void from_resource(const Resource& obj) throw(SerializerError) = 0;
/**
\brief Add output to the serializer taking data from resource and key
BUG FIXED: This save a resource with her own associated key.
*/
virtual void from_resource(const Resource& obj, const Glib::ustring& key) = 0;
virtual void from_resource(const Resource& obj, const Glib::ustring& key) throw(SerializerError) = 0;
/**
\brief Add output to the serializer taking data from process
*/
virtual void from_process(const Process& obj) = 0;
virtual void from_process(const Process& obj) throw(SerializerError) = 0;
/**
\brief Add output to the serializer taking data from thread
*/
virtual void from_thread(const Thread& obj) = 0;
virtual void from_thread(const Thread& obj) throw(SerializerError) = 0;
/**
\brief Add output to the serializer taking data from request
*/
virtual void from_request(const Request& obj) = 0;
virtual void from_request(const Request& obj) throw(SerializerError) = 0;
/**
\brief Add output to the serializer taking data from subrequest
*/
virtual void from_subrequest(const SubRequest& obj) = 0;
virtual void from_subrequest(const SubRequest& obj) throw(SerializerError) = 0;
};
}

View file

@ -35,8 +35,8 @@ namespace sgpem
public:
virtual ~Serializer() = 0;
virtual void save_snapshot(const Glib::ustring& filename, const History& hist) = 0;
virtual void restore_snapshot(const Glib::ustring& filename, History& hist) = 0;
virtual void save_snapshot(const Glib::ustring& filename, const History& hist) throw(SerializeError) = 0;
virtual void restore_snapshot(const Glib::ustring& filename, History& hist) throw(SerializeError) = 0;
virtual const Glib::ustring get_filename_extension() = 0;
virtual const Glib::ustring get_filename_description() = 0;
protected: