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

#include <Layer.h>

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

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 T & 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 >
 

Detailed Description

Definition at line 54 of file Layer.h.

Member Typedef Documentation

◆ LayerFnctIdxType

Definition at line 63 of file Layer.h.

◆ LayerFnctSerializeType

◆ LayerReadFnctType

Definition at line 60 of file Layer.h.

◆ LayerWriteFnctType

Definition at line 61 of file Layer.h.

Constructor & Destructor Documentation

◆ ~Layer()

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

◆ Layer()

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

Member Function Documentation

◆ getInstance()

template<class T >
T & te::common::Singleton< T >::getInstance ( )
inlinestaticinherited

It returns a reference to the singleton instance.

Returns
A reference to the singleton instance.

Definition at line 126 of file Singleton.h.

◆ read()

te::map::AbstractLayer* te::map::serialize::Layer::read ( te::xml::Reader reader) const

◆ reg()

void te::map::serialize::Layer::reg ( const std::string &  layerType,
const LayerFnctSerializeType fncts 
)

◆ write()

void te::map::serialize::Layer::write ( const te::map::AbstractLayer alayer,
te::xml::AbstractWriter writer 
) const

Friends And Related Function Documentation

◆ te::common::Singleton< Layer >

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

Definition at line 56 of file Layer.h.

Member Data Documentation

◆ m_fncts

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: