- 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
|
||||
|
||||
#include "config.h"
|
||||
#include "backend/history.hh"
|
||||
#include "history.hh"
|
||||
|
||||
#include <glibmm/ustring.h>
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ SerializersGatekeeper::get_registered() const
|
|||
}
|
||||
|
||||
void
|
||||
SerializersGatekeeper::register(Serializer* serializer)
|
||||
SerializersGatekeeper::register_serializer(Serializer* serializer)
|
||||
{
|
||||
assert(serializer != NULL);
|
||||
|
||||
|
@ -57,7 +57,7 @@ SerializersGatekeeper::register(Serializer* serializer)
|
|||
}
|
||||
|
||||
void
|
||||
SerializersGatekeeper::unregister(Serializer* serializer)
|
||||
SerializersGatekeeper::unregister_serializer(Serializer* serializer)
|
||||
{
|
||||
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
|
||||
// Mathematics
|
||||
//
|
||||
|
@ -29,7 +29,6 @@ namespace sgpem
|
|||
#include "config.h"
|
||||
|
||||
#include <vector>
|
||||
#include <stdexcept>
|
||||
|
||||
#include "singleton.hh"
|
||||
|
||||
|
@ -37,10 +36,8 @@ namespace sgpem
|
|||
{
|
||||
class SerializersGatekeeper;
|
||||
|
||||
/** \brief Keeps all registered serializer in order to access to available serializers
|
||||
|
||||
This Singleton derived class keep every registered Serializer in order to
|
||||
give more file saving formats using disticnt Serializers.
|
||||
/** \brief FIXME document me
|
||||
|
||||
|
||||
*/
|
||||
|
||||
|
@ -49,26 +46,17 @@ namespace sgpem
|
|||
friend class Singleton<SerializersGatekeeper>;
|
||||
|
||||
public:
|
||||
/** \brief Gets the registered serializers container
|
||||
*/
|
||||
std::vector<Serializer*> get_registered() const;
|
||||
|
||||
/** \brief Add a serializer to the serializers container
|
||||
*/
|
||||
void register(Serializer* serializer);
|
||||
|
||||
/** \brief Remove a serializer from the serializers container
|
||||
*/
|
||||
void unregister(Serializer* serializer);
|
||||
void register_serializer(Serializer* serializer);
|
||||
|
||||
void unregister_serializer(Serializer* serializer);
|
||||
|
||||
private:
|
||||
SerializersGatekeeper(); //private constructor.
|
||||
SerializersGatekeeper(const SerializersGatekeeper&);
|
||||
SerializersGatekeeper& operator=(const SerializersGatekeeper&);
|
||||
|
||||
/** \brief The registered serializers container
|
||||
|
||||
*/
|
||||
std::vector<Serializer*> _registered;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue