te::map::serialize::Layer Class Reference

#include <Layer.h>

Inheritance diagram for te::map::serialize::Layer:
te::common::Singleton< Layer >

Public Types

typedef std::map< std::string, LayerFnctSerializeTypeLayerFnctIdxType
 
typedef std::pair< LayerReadFnctType, LayerWriteFnctTypeLayerFnctSerializeType
 
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::AbstractLayerread (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 LayergetInstance ()
 It returns a reference to the singleton instance. More...
 

Protected Member Functions

 Layer ()
 

Private Attributes

LayerFnctIdxType m_fncts
 

Friends

class te::common::Singleton< Layer >
 

Detailed Description

Definition at line 54 of file Layer.h.

Member Typedef Documentation

Definition at line 63 of file Layer.h.

Definition at line 60 of file Layer.h.

Definition at line 61 of file Layer.h.

Constructor & Destructor Documentation

te::map::serialize::Layer::~Layer ( )
te::map::serialize::Layer::Layer ( )
protected

Member Function Documentation

static Layer & te::common::Singleton< Layer >::getInstance ( )
staticinherited

It returns a reference to the singleton instance.

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

Friends And Related Function Documentation

friend class te::common::Singleton< Layer >
friend

Definition at line 56 of file Layer.h.

Member Data Documentation

LayerFnctIdxType te::map::serialize::Layer::m_fncts
private

Definition at line 79 of file Layer.h.


The documentation for this class was generated from the following file: