#include <Layer.h>
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::AbstractWriter &)> | 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::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 > |
Definition at line 54 of file src/terralib/maptools/serialization/xml/Layer.h.
| typedef std::map<std::string, LayerFnctSerializeType> te::map::serialize::Layer::LayerFnctIdxType |
Definition at line 63 of file src/terralib/maptools/serialization/xml/Layer.h.
| typedef std::pair<LayerReadFnctType, LayerWriteFnctType> te::map::serialize::Layer::LayerFnctSerializeType |
Definition at line 62 of file src/terralib/maptools/serialization/xml/Layer.h.
| typedef boost::function<te::map::AbstractLayer* (te::xml::Reader&)> te::map::serialize::Layer::LayerReadFnctType |
Definition at line 60 of file src/terralib/maptools/serialization/xml/Layer.h.
| typedef boost::function<void (const te::map::AbstractLayer*, te::xml::AbstractWriter&)> te::map::serialize::Layer::LayerWriteFnctType |
Definition at line 61 of file src/terralib/maptools/serialization/xml/Layer.h.
|
default |
Referenced by write().
|
protected |
Definition at line 174 of file src/terralib/maptools/serialization/xml/Layer.cpp.
References DataSetAdapterLayerReader(), DataSetAdapterLayerWriter(), DataSetLayerReader(), DataSetLayerWriter(), FolderLayerReader(), FolderLayerWriter(), m_fncts, QueryLayerReader(), QueryLayerWriter(), RasterLayerReader(), and RasterLayerWriter().
|
inlinestaticinherited |
It returns a reference to the singleton instance.
Definition at line 126 of file Singleton.h.
Referenced by te::qt::plugins::vp::AbstractAction::addNewLayer(), te::qt::widgets::applyRasterMultiResolution(), BBOXReader(), BBOXWriter(), BetweenReader(), BetweenWriter(), BinaryComparsionOpReader(), BinaryComparsionOpWriter(), BinaryOperatorReader(), BinarySpatialOpReader(), BinarySpatialOpWriter(), te::map::QueryLayerRenderer::buildChart(), te::map::AbstractLayerRenderer::buildChart(), te::qt::widgets::ClassifierWizard::buildLegend(), DistanceBufferOpWriter(), DistanceBufferReader(), te::edit::MergeGeometriesTool::draw(), te::edit::EditInfoTool::draw(), te::edit::AddCommand::draw(), te::edit::SubtractAreaTool::draw(), te::edit::AggregateAreaTool::draw(), te::edit::RotateGeometryTool::draw(), te::edit::CreatePointTool::draw(), te::edit::DeleteGeometryByAreaTool::draw(), te::edit::CreateLineTool::draw(), te::edit::CreatePolygonTool::draw(), te::edit::MoveGeometryTool::draw(), te::edit::SplitPolygonTool::draw(), te::edit::VertexTool::draw(), te::edit::CreatePolygonTool::drawLine(), te::edit::SubtractAreaTool::drawPolygon(), te::edit::AggregateAreaTool::drawPolygon(), te::edit::DeleteGeometryByAreaTool::drawPolygon(), te::edit::CreatePolygonTool::drawPolygon(), te::qt::plugins::edit::Plugin::drawStashed(), te::color::Module::finalize(), te::qt::widgets::Module::finalize(), FolderLayerReader(), FolderLayerWriter(), te::sa::GetColorBar(), te::rp::GetSensorFilename(), te::color::Module::initialize(), te::qt::widgets::Module::initialize(), te::qt::plugins::rp::RasterConfigWidget::initialize(), te::qt::plugins::vp::VectorProcessingConfigWidget::initialize(), te::qt::af::GeneralConfigWidget::initialize(), te::qt::af::ApplicationController::initialize(), te::qt::af::ApplicationController::initializePlugins(), LikeReader(), LikeWriter(), te::qt::widgets::ColorCatalogWidget::loadDefaultColorCatalog(), LoadProject(), NullReader(), NullWriter(), te::qt::widgets::ColorCatalogWidget::onCatalogComboBoxActivated(), te::qt::widgets::ColorCatalogWidget::onGroupComboBoxActivated(), te::qt::widgets::ColorCatalogWidget::onSchemaComboBoxActivated(), te::qt::af::AppCtrlSingleton::prepareQtEnvironment(), te::se::serialize::ReadGeometryPropertyHelper(), te::se::serialize::ReadParameterValue(), te::se::serialize::ReadRule(), te::qt::widgets::CloudDetectionDialog::readStyle(), te::se::serialize::ReadSvgParameter(), te::qt::widgets::ReadSymbol(), te::se::serialize::Save(), SaveProject(), te::color::ColorSchemeCatalog::setName(), te::wms::Module::startup(), te::ws::ogc::wms::da::Module::startup(), TerraViewController::TerraViewController(), te::qt::af::UpdateUserSettingsFile(), te::se::serialize::WriteGeometryPropertyHelper(), and te::qt::widgets::CloudDetectionDialog::writeStyle().
| te::map::AbstractLayer * te::map::serialize::Layer::read | ( | te::xml::Reader & | reader | ) | const |
Definition at line 144 of file src/terralib/maptools/serialization/xml/Layer.cpp.
References te::xml::Reader::getElementLocalName(), m_fncts, and TE_TR.
Referenced by DataSetAdapterLayerReader(), DataSetLayerReader(), FolderLayerReader(), LoadProject(), QueryLayerReader(), and RasterLayerReader().
| void te::map::serialize::Layer::reg | ( | const std::string & | layerType, |
| const LayerFnctSerializeType & | fncts | ||
| ) |
Definition at line 139 of file src/terralib/maptools/serialization/xml/Layer.cpp.
References m_fncts.
| void te::map::serialize::Layer::write | ( | const te::map::AbstractLayer * | alayer, |
| te::xml::AbstractWriter & | writer | ||
| ) | const |
Definition at line 158 of file src/terralib/maptools/serialization/xml/Layer.cpp.
References te::map::AbstractLayer::getType(), m_fncts, TE_TR, and ~Layer().
Referenced by SaveProject().
|
friend |
Definition at line 56 of file src/terralib/maptools/serialization/xml/Layer.h.
|
private |