te::se::serialize::Style Class Reference

#include <Style.h>

Inheritance diagram for te::se::serialize::Style:
te::common::Singleton< Style >

Public Types

typedef std::map< std::string, StyleFnctSerializeTypeStyleFnctIdxType
 
typedef std::pair< StyleReadFnctType, StyleWriteFnctTypeStyleFnctSerializeType
 
typedef boost::function< te::se::Style *(te::xml::Reader &)> StyleReadFnctType
 
typedef boost::function< void(const te::se::Style *, te::xml::AbstractWriter &)> StyleWriteFnctType
 

Public Member Functions

te::se::Styleread (te::xml::Reader &reader) const
 
void reg (const std::string &styleType, const StyleFnctSerializeType &fncts)
 
void write (const te::se::Style *style, te::xml::AbstractWriter &writer) const
 
 ~Style ()
 

Static Public Member Functions

static StylegetInstance ()
 It returns a reference to the singleton instance. More...
 

Protected Member Functions

 Style ()
 

Private Attributes

StyleFnctIdxType m_fncts
 

Friends

class te::common::Singleton< Style >
 

Detailed Description

Definition at line 56 of file Style.h.

Member Typedef Documentation

◆ StyleFnctIdxType

Definition at line 65 of file Style.h.

◆ StyleFnctSerializeType

◆ StyleReadFnctType

Definition at line 62 of file Style.h.

◆ StyleWriteFnctType

Definition at line 63 of file Style.h.

Constructor & Destructor Documentation

◆ ~Style()

te::se::serialize::Style::~Style ( )

◆ Style()

te::se::serialize::Style::Style ( )
protected

Member Function Documentation

◆ getInstance()

Style & te::common::Singleton< Style >::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::se::Style* te::se::serialize::Style::read ( te::xml::Reader reader) const

◆ reg()

void te::se::serialize::Style::reg ( const std::string &  styleType,
const StyleFnctSerializeType fncts 
)

◆ write()

void te::se::serialize::Style::write ( const te::se::Style style,
te::xml::AbstractWriter writer 
) const

Friends And Related Function Documentation

◆ te::common::Singleton< Style >

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

Definition at line 58 of file Style.h.

Member Data Documentation

◆ m_fncts

StyleFnctIdxType te::se::serialize::Style::m_fncts
private

Definition at line 81 of file Style.h.


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