All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
te::serialize::Layer Class Reference

#include <Layer.h>

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

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::Writer &)> 
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::Writer &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 >
 

Detailed Description

Definition at line 52 of file Layer.h.

Member Typedef Documentation

Definition at line 61 of file Layer.h.

Definition at line 58 of file Layer.h.

Definition at line 59 of file Layer.h.

Constructor & Destructor Documentation

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

Definition at line 709 of file Layer.cpp.

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.

Referenced by FolderLayerReader(), FolderLayerWriter(), te::qt::af::ReadProject(), and te::qt::af::Save().

te::map::AbstractLayer * te::serialize::Layer::read ( te::xml::Reader &  reader) const
void te::serialize::Layer::reg ( const std::string &  layerType,
const LayerFnctSerializeType &  fncts 
)

Definition at line 676 of file Layer.cpp.

References m_fncts.

void te::serialize::Layer::write ( const te::map::AbstractLayer *  alayer,
te::xml::Writer &  writer 
) const

Definition at line 695 of file Layer.cpp.

References te::map::AbstractLayer::getType(), and TR_SERIALIZATION.

Referenced by FolderLayerWriter(), and te::qt::af::Save().

Friends And Related Function Documentation

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

Definition at line 54 of file Layer.h.

Member Data Documentation

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

Definition at line 77 of file Layer.h.

Referenced by reg().


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