27 #include "../common/STLUtils.h" 28 #include "../xlink/SimpleLink.h" 38 m_description(nullptr),
39 m_semanticTypeIdentifiers(nullptr),
117 m_rules.erase(m_rules.begin() + i);
128 assert(onlineResource);
A Description gives human-readable descriptive information for the object it is included within...
std::string * m_name
It allows the style to be referenced. Names must be unique in the context in which they are defined...
Description * m_description
It gives an informative description of the style. (Optional)
std::vector< Rule * > m_rules
It allows conditional rendering. (Mandatory if m_onlineResource is empty, otherwise, it is optional)
void setDescription(Description *d)
void setVersion(const std::string &v)
virtual ~Style()
Virtual destructor.
A Rule is used to attach property/scale conditions to and group the individual symbols used for rende...
void push_back(const std::string &semanticTypeIdentifier)
A Description gives human-readable descriptive information for the object it is included within...
Rule * getRule(std::size_t i) const
const std::vector< Rule * > & getRules() const
std::vector< std::string > * m_semanticTypeIdentifiers
The SemanticTypeIdentifier is experimental and is intended to be used to identify what the feature st...
const std::vector< te::xl::SimpleLink * > & getOnlineResources() const
static te::dt::DateTime d(2010, 8, 9, 15, 58, 39)
Style()
It initializes a new Style.
void removeRule(std::size_t i)
#define TE_SE_DEFAULT_VERSION
It specifies the default version used by OGC Symbology Encoding.
const std::string & getSemanticTypeIdentifier(std::size_t i)
void setName(std::string *name)
A Rule is used to attach property/scale conditions to and group the individual symbols used for rende...
const std::string * getName() const
const te::xl::SimpleLink * getOnlineResource(std::size_t i) const
std::string m_version
The version is an optional attribute on the FeatureTypeStyle that identifies the SE version number th...
std::vector< te::xl::SimpleLink * > m_onlineResources
It refers to an external document. (Mandatory if m_rules is empty, otherwise, it is optional) ...
const std::vector< std::string > * getSemanticTypeIdentifiers() const
The Style defines the styling that is to be applied to a geographic dataset (vector geometries or cov...
const Description * getDescription() const
void FreeContents(boost::unordered_map< K, V * > &m)
This function can be applied to a map of pointers. It will delete each pointer in the map...
const std::string & getVersion() const