#include <Expression.h>
Public Types | |
| typedef std::map< std::string, ExpressionReadFnctType > | ExpressionFnctIdxType |
| typedef boost::function< te::fe::Expression *(te::xml::Reader &)> | ExpressionReadFnctType |
Public Member Functions | |
| te::fe::Expression * | read (te::xml::Reader &reader) const |
| void | reg (const std::string &expName, const ExpressionReadFnctType &fnct) |
| void | write (const te::fe::Expression *exp, te::xml::AbstractWriter &writer) |
| ~Expression () | |
Visitor Methods | |
All concrete visitors must implement these methods. | |
| void | visit (const te::fe::BinaryOperator &visited) |
| void | visit (const te::fe::Function &visited) |
| void | visit (const te::fe::Literal &visited) |
| void | visit (const te::fe::PropertyName &visited) |
| void | visit (const te::fe::AbstractOp &visited) |
| void | visit (const te::fe::SpatialOp &visited) |
| void | visit (const te::fe::ComparisonOp &visited) |
| void | visit (const te::fe::LogicOp &visited) |
| void | visit (const te::fe::BBOXOp &visited) |
| void | visit (const te::fe::BinaryComparisonOp &visited) |
| void | visit (const te::fe::BinaryLogicOp &visited) |
| void | visit (const te::fe::BinarySpatialOp &visited) |
| void | visit (const te::fe::DistanceBuffer &visited) |
| void | visit (const te::fe::PropertyIsBetween &visited) |
| void | visit (const te::fe::PropertyIsLike &visited) |
| void | visit (const te::fe::PropertyIsNull &visited) |
| void | visit (const te::fe::UnaryLogicOp &visited) |
| void | visit (const te::fe::Expression &visited) |
Static Public Member Functions | |
| static T & | getInstance () |
| It returns a reference to the singleton instance. More... | |
Protected Member Functions | |
| Expression () | |
Private Attributes | |
| ExpressionFnctIdxType | m_fncts |
| te::xml::AbstractWriter * | m_writer |
Friends | |
| class | te::common::Singleton< Expression > |
Definition at line 55 of file fe/serialization/xml/Expression.h.
| typedef std::map<std::string, ExpressionReadFnctType> te::fe::serialize::Expression::ExpressionFnctIdxType |
Definition at line 62 of file fe/serialization/xml/Expression.h.
| typedef boost::function<te::fe::Expression* (te::xml::Reader&)> te::fe::serialize::Expression::ExpressionReadFnctType |
Definition at line 61 of file fe/serialization/xml/Expression.h.
|
default |
Referenced by visit().
|
protected |
Definition at line 120 of file fe/serialization/xml/Expression.cpp.
References BinaryOperatorReader(), LiteralReader(), m_fncts, PropertyNameReader(), te::fe::Globals::sm_add, te::fe::Globals::sm_div, te::fe::Globals::sm_mul, and te::fe::Globals::sm_sub.
|
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::fe::Expression * te::fe::serialize::Expression::read | ( | te::xml::Reader & | reader | ) | const |
Definition at line 58 of file fe/serialization/xml/Expression.cpp.
References te::xml::Reader::getElementLocalName(), te::xml::Reader::getNodeType(), m_fncts, TE_TR, and te::xml::VALUE.
Referenced by BinaryOperatorReader().
| void te::fe::serialize::Expression::reg | ( | const std::string & | expName, |
| const ExpressionReadFnctType & | fnct | ||
| ) |
Definition at line 53 of file fe/serialization/xml/Expression.cpp.
References m_fncts.
|
virtual |
Implements te::fe::Visitor.
Definition at line 84 of file fe/serialization/xml/Expression.cpp.
References te::common::BaseVisitable< T, R >::accept(), te::fe::BinaryOperator::getFirst(), te::fe::BinaryOperator::getName(), te::fe::BinaryOperator::getSecond(), m_writer, te::xml::AbstractWriter::writeEndElement(), and te::xml::AbstractWriter::writeStartElement().
|
virtual |
Implements te::fe::Visitor.
Definition at line 102 of file fe/serialization/xml/Expression.cpp.
|
virtual |
Implements te::fe::Visitor.
Definition at line 107 of file fe/serialization/xml/Expression.cpp.
References te::fe::Literal::getValue(), m_writer, and te::xml::AbstractWriter::writeElement().
|
virtual |
Implements te::fe::Visitor.
Definition at line 113 of file fe/serialization/xml/Expression.cpp.
References te::fe::PropertyName::getName(), m_writer, te::xml::AbstractWriter::writeElement(), and ~Expression().
|
inlinevirtual |
Implements te::fe::Visitor.
Definition at line 80 of file fe/serialization/xml/Expression.h.
|
inlinevirtual |
Implements te::fe::Visitor.
Definition at line 81 of file fe/serialization/xml/Expression.h.
|
inlinevirtual |
Implements te::fe::Visitor.
Definition at line 82 of file fe/serialization/xml/Expression.h.
|
inlinevirtual |
Implements te::fe::Visitor.
Definition at line 83 of file fe/serialization/xml/Expression.h.
|
inlinevirtual |
Implements te::fe::Visitor.
Definition at line 84 of file fe/serialization/xml/Expression.h.
|
inlinevirtual |
Implements te::fe::Visitor.
Definition at line 85 of file fe/serialization/xml/Expression.h.
|
inlinevirtual |
Implements te::fe::Visitor.
Definition at line 86 of file fe/serialization/xml/Expression.h.
|
inlinevirtual |
Implements te::fe::Visitor.
Definition at line 87 of file fe/serialization/xml/Expression.h.
|
inlinevirtual |
Implements te::fe::Visitor.
Definition at line 88 of file fe/serialization/xml/Expression.h.
|
inlinevirtual |
Implements te::fe::Visitor.
Definition at line 89 of file fe/serialization/xml/Expression.h.
|
inlinevirtual |
Implements te::fe::Visitor.
Definition at line 90 of file fe/serialization/xml/Expression.h.
|
inlinevirtual |
Implements te::fe::Visitor.
Definition at line 91 of file fe/serialization/xml/Expression.h.
|
inlinevirtual |
Implements te::fe::Visitor.
Definition at line 92 of file fe/serialization/xml/Expression.h.
|
inlinevirtual |
Implements te::fe::Visitor.
Definition at line 93 of file fe/serialization/xml/Expression.h.
| void te::fe::serialize::Expression::write | ( | const te::fe::Expression * | exp, |
| te::xml::AbstractWriter & | writer | ||
| ) |
Definition at line 73 of file fe/serialization/xml/Expression.cpp.
References te::common::BaseVisitable< T, R >::accept(), and m_writer.
|
friend |
Definition at line 57 of file fe/serialization/xml/Expression.h.
|
private |
Definition at line 105 of file fe/serialization/xml/Expression.h.
Referenced by Expression(), read(), and reg().
|
private |
Definition at line 106 of file fe/serialization/xml/Expression.h.