- update serializer related files
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@749 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
6150af3d30
commit
864e71b82e
|
@ -22,7 +22,7 @@
|
||||||
#define SERIALIZER_HH 1
|
#define SERIALIZER_HH 1
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "backend/history.hh"
|
#include "history.hh"
|
||||||
|
|
||||||
#include <glibmm/ustring.h>
|
#include <glibmm/ustring.h>
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@ SerializersGatekeeper::get_registered() const
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
SerializersGatekeeper::register(Serializer* serializer)
|
SerializersGatekeeper::register_serializer(Serializer* serializer)
|
||||||
{
|
{
|
||||||
assert(serializer != NULL);
|
assert(serializer != NULL);
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ SerializersGatekeeper::register(Serializer* serializer)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
SerializersGatekeeper::unregister(Serializer* serializer)
|
SerializersGatekeeper::unregister_serializer(Serializer* serializer)
|
||||||
{
|
{
|
||||||
assert(serializer != NULL);
|
assert(serializer != NULL);
|
||||||
|
|
||||||
|
@ -72,7 +72,6 @@ SerializersGatekeeper::unregister(Serializer* serializer)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SerializersGatekeeper::PoliciesGatekeeper()
|
SerializersGatekeeper::SerializersGatekeeper()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// src/backend/policies_gatekeeper.hh - Copyright 2005, 2006, University
|
// src/backend/serializers_gatekeeper.hh - Copyright 2005, 2006, University
|
||||||
// of Padova, dept. of Pure and Applied
|
// of Padova, dept. of Pure and Applied
|
||||||
// Mathematics
|
// Mathematics
|
||||||
//
|
//
|
||||||
|
@ -29,7 +29,6 @@ namespace sgpem
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <stdexcept>
|
|
||||||
|
|
||||||
#include "singleton.hh"
|
#include "singleton.hh"
|
||||||
|
|
||||||
|
@ -37,10 +36,8 @@ namespace sgpem
|
||||||
{
|
{
|
||||||
class SerializersGatekeeper;
|
class SerializersGatekeeper;
|
||||||
|
|
||||||
/** \brief Keeps all registered serializer in order to access to available serializers
|
/** \brief FIXME document me
|
||||||
|
|
||||||
This Singleton derived class keep every registered Serializer in order to
|
|
||||||
give more file saving formats using disticnt Serializers.
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -49,26 +46,17 @@ namespace sgpem
|
||||||
friend class Singleton<SerializersGatekeeper>;
|
friend class Singleton<SerializersGatekeeper>;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/** \brief Gets the registered serializers container
|
|
||||||
*/
|
|
||||||
std::vector<Serializer*> get_registered() const;
|
std::vector<Serializer*> get_registered() const;
|
||||||
|
|
||||||
/** \brief Add a serializer to the serializers container
|
void register_serializer(Serializer* serializer);
|
||||||
*/
|
|
||||||
void register(Serializer* serializer);
|
void unregister_serializer(Serializer* serializer);
|
||||||
|
|
||||||
/** \brief Remove a serializer from the serializers container
|
|
||||||
*/
|
|
||||||
void unregister(Serializer* serializer);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
SerializersGatekeeper(); //private constructor.
|
SerializersGatekeeper(); //private constructor.
|
||||||
SerializersGatekeeper(const SerializersGatekeeper&);
|
SerializersGatekeeper(const SerializersGatekeeper&);
|
||||||
SerializersGatekeeper& operator=(const SerializersGatekeeper&);
|
SerializersGatekeeper& operator=(const SerializersGatekeeper&);
|
||||||
|
|
||||||
/** \brief The registered serializers container
|
|
||||||
|
|
||||||
*/
|
|
||||||
std::vector<Serializer*> _registered;
|
std::vector<Serializer*> _registered;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue