#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 |
|
protected |
Definition at line 176 of file Layer.cpp.
References DataSetAdapterLayerReader(), DataSetAdapterLayerWriter(), DataSetLayerReader(), DataSetLayerWriter(), FolderLayerReader(), FolderLayerWriter(), QueryLayerReader(), QueryLayerWriter(), RasterLayerReader(), and RasterLayerWriter().
|
staticinherited |
It returns a reference to the singleton instance.
Referenced by FolderLayerReader(), FolderLayerWriter(), te::qt::af::ReadProject(), te::qt::af::Save(), and te::wms::Module::startup().
te::map::AbstractLayer * te::map::serialize::Layer::read | ( | te::xml::Reader & | reader | ) | const |
Definition at line 144 of file Layer.cpp.
References te::xml::Reader::getElementLocalName(), and TE_TR.
Referenced by FolderLayerReader(), and te::qt::af::ReadProject().
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 |
Definition at line 158 of file Layer.cpp.
References te::map::AbstractLayer::getType(), and TE_TR.
Referenced by FolderLayerWriter(), and te::qt::af::Save().
|
friend |
|
private |