#include <Layer.h>
Public Types | |
typedef std::map< std::string, LayerFnctSerializeType > | LayerFnctIdxType |
typedef std::pair< LayerReadFnctType, LayerWriteFnctType > | LayerFnctSerializeType |
typedef boost::function< te::map::AbstractLayer *(te::xml::Reader &)> | LayerReadFnctType |
typedef boost::function< void(const te::map::AbstractLayer *, te::xml::AbstractWriter &)> | LayerWriteFnctType |
Public Member Functions | |
te::map::AbstractLayer * | read (te::xml::Reader &reader) const |
void | reg (const std::string &layerType, const LayerFnctSerializeType &fncts) |
void | write (const te::map::AbstractLayer *alayer, te::xml::AbstractWriter &writer) const |
~Layer () | |
Static Public Member Functions | |
static Layer & | getInstance () |
It returns a reference to the singleton instance. More... | |
Protected Member Functions | |
Layer () | |
Private Attributes | |
LayerFnctIdxType | m_fncts |
Friends | |
class | te::common::Singleton< Layer > |
typedef std::map<std::string, LayerFnctSerializeType> te::map::serialize::Layer::LayerFnctIdxType |
typedef std::pair<LayerReadFnctType, LayerWriteFnctType> te::map::serialize::Layer::LayerFnctSerializeType |
typedef boost::function<te::map::AbstractLayer* (te::xml::Reader&)> te::map::serialize::Layer::LayerReadFnctType |
typedef boost::function<void (const te::map::AbstractLayer*, te::xml::AbstractWriter&)> te::map::serialize::Layer::LayerWriteFnctType |
te::map::serialize::Layer::~Layer | ( | ) |
|
protected |
|
staticinherited |
It returns a reference to the singleton instance.
te::map::AbstractLayer* te::map::serialize::Layer::read | ( | te::xml::Reader & | reader | ) | const |
void te::map::serialize::Layer::reg | ( | const std::string & | layerType, |
const LayerFnctSerializeType & | fncts | ||
) |
void te::map::serialize::Layer::write | ( | const te::map::AbstractLayer * | alayer, |
te::xml::AbstractWriter & | writer | ||
) | const |
|
friend |
|
private |