#include <Style.h>
Public Types | |
typedef std::map< std::string, StyleFnctSerializeType > | StyleFnctIdxType |
typedef std::pair < StyleReadFnctType, StyleWriteFnctType > | StyleFnctSerializeType |
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::Style * | read (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 Style & | getInstance () |
It returns a reference to the singleton instance. More... | |
Protected Member Functions | |
Style () | |
Private Attributes | |
StyleFnctIdxType | m_fncts |
Friends | |
class | te::common::Singleton< Style > |
typedef std::map<std::string, StyleFnctSerializeType> te::se::serialize::Style::StyleFnctIdxType |
typedef std::pair<StyleReadFnctType, StyleWriteFnctType> te::se::serialize::Style::StyleFnctSerializeType |
typedef boost::function<te::se::Style* (te::xml::Reader&)> te::se::serialize::Style::StyleReadFnctType |
typedef boost::function<void (const te::se::Style*, te::xml::AbstractWriter&)> te::se::serialize::Style::StyleWriteFnctType |
|
protected |
Definition at line 88 of file Style.cpp.
References CoverageStyleReader(), CoverageStyleWriter(), FeatureTypeStyleReader(), and FeatureTypeStyleWriter().
|
staticinherited |
It returns a reference to the singleton instance.
Referenced by DataSetAdapterLayerReader(), DataSetAdapterLayerWriter(), DataSetLayerReader(), DataSetLayerWriter(), te::wms::serialize::LayerReader(), te::wms::serialize::LayerWriter(), QueryLayerReader(), QueryLayerWriter(), RasterLayerReader(), and RasterLayerWriter().
te::se::Style * te::se::serialize::Style::read | ( | te::xml::Reader & | reader | ) | const |
Definition at line 56 of file Style.cpp.
References te::xml::Reader::getElementLocalName(), and TE_TR.
void te::se::serialize::Style::reg | ( | const std::string & | styleType, |
const StyleFnctSerializeType & | fncts | ||
) |
void te::se::serialize::Style::write | ( | const te::se::Style * | style, |
te::xml::AbstractWriter & | writer | ||
) | const |
Definition at line 70 of file Style.cpp.
References te::se::Style::getType(), and TE_TR.
|
friend |
|
private |