SerializationExamples.cpp File Reference

Go to the source code of this file.

Functions

te::se::StyleDecodeStyle (const std::string &path)
 It decodes a given OGC Symbology Encoding Style file. More...
 
void EncodeStyle (const std::string &path)
 It creates an OGC Symbology Encoding Style and encode it to XML format. More...
 

Function Documentation

te::se::Style* DecodeStyle ( const std::string &  path)

It decodes a given OGC Symbology Encoding Style file.

Definition at line 156 of file SerializationExamples.cpp.

References te::common::Singleton< Style >::getInstance(), te::xml::ReaderFactory::make(), te::xml::Reader::next(), and te::xml::Reader::read().

Referenced by main().

void EncodeStyle ( const std::string &  path)

It creates an OGC Symbology Encoding Style and encode it to XML format.

Definition at line 19 of file SerializationExamples.cpp.

References te::se::Categorize::addThreshold(), te::se::Categorize::addValue(), te::se::CreateDescription(), te::se::CreateFill(), te::se::CreateFont(), te::se::CreateGraphic(), te::se::CreateLineSymbolizer(), te::se::CreateMark(), te::se::CreatePointSymbolizer(), te::se::CreatePolygonSymbolizer(), te::se::CreateStroke(), te::se::CreateTextSymbolizer(), Filter(), te::common::Singleton< Style >::getInstance(), te::xml::AbstractWriterFactory::make(), te::se::Categorize::PRECEDING, te::se::Style::push_back(), te::se::Rule::push_back(), te::se::RGB_COMPOSITION, te::se::ChannelSelection::setBlueChannel(), te::se::ColorMap::setCategorize(), te::se::RasterSymbolizer::setChannelSelection(), te::se::ChannelSelection::setColorCompositionType(), te::se::RasterSymbolizer::setColorMap(), te::se::Style::setDescription(), te::se::Rule::setDescription(), te::se::Symbolizer::setDescription(), te::se::Function::setFallbackValue(), te::se::Rule::setFilter(), te::se::RasterSymbolizer::setGain(), te::se::PointSymbolizer::setGeometry(), te::se::TextSymbolizer::setGeometry(), te::se::LineSymbolizer::setGeometry(), te::se::PolygonSymbolizer::setGeometry(), te::se::ChannelSelection::setGreenChannel(), te::se::Categorize::setLookupValue(), te::se::Rule::setMaxScaleDenominator(), te::se::Rule::setMinScaleDenominator(), te::se::Style::setName(), te::se::Rule::setName(), te::se::RasterSymbolizer::setOffset(), te::fe::Filter::setOp(), te::se::RasterSymbolizer::setOpacity(), te::se::ChannelSelection::setRedChannel(), te::se::SelectedChannel::setSourceChannelName(), te::se::Categorize::setThresholdsBelongTo(), te::fe::Globals::sm_and, te::fe::Globals::sm_or, te::fe::Globals::sm_propertyIsEqualTo, te::fe::Globals::sm_propertyIsLessThan, te::se::Font::StyleNormal, and te::se::Font::WeightBold.

Referenced by main().