- Fixed compilation errors caused by latest changes to serialization code
- Setup makefile for xmlsave plugin. It still can`t be activated. why? - Added a temporary command SAVE to commandline interface to try serialization git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@826 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
574723a35b
commit
96728edfce
14 changed files with 95 additions and 36 deletions
|
@ -122,6 +122,10 @@ DynamicProcess::get_state() const
|
|||
if (future > 0) // running == 0 && ready == 0 && blocked == 0 && terminated == 0
|
||||
return state_future;
|
||||
|
||||
// I'm not sure if we can get here (maybe if there are no threads?),
|
||||
// but I don't like this compiler warning: 'control reaches end of non-void function'
|
||||
return state_future;
|
||||
|
||||
// Since premature optimization is the root of all evil, and the
|
||||
// following code was very fast but also very wrong, the coder
|
||||
// will be punished by allowing her to code in C++ just after
|
||||
|
|
|
@ -22,6 +22,11 @@
|
|||
|
||||
using namespace sgpem;
|
||||
|
||||
Serializer::Serializer()
|
||||
{
|
||||
SerializersGatekeeper::get_instance().register_serializer(this);
|
||||
}
|
||||
|
||||
Serializer::~Serializer()
|
||||
{}
|
||||
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
#include "config.h"
|
||||
#include "history.hh"
|
||||
#include "serializer_error.hh"
|
||||
|
||||
#include <glibmm/ustring.h>
|
||||
|
||||
|
@ -33,10 +34,11 @@ namespace sgpem
|
|||
class Serializer
|
||||
{
|
||||
public:
|
||||
Serializer();
|
||||
virtual ~Serializer() = 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 void save_snapshot(const Glib::ustring& filename, const History& hist) throw(SerializerError) = 0;
|
||||
virtual void restore_snapshot(const Glib::ustring& filename, History& hist) throw(SerializerError) = 0;
|
||||
virtual const Glib::ustring get_filename_extension() = 0;
|
||||
virtual const Glib::ustring get_filename_description() = 0;
|
||||
protected:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue