Maria GDK 5.0.0.737
Documentation of native code in develop branch
Loading...
Searching...
No Matches
Maria::MapTemplateManager Class Reference

#include <MMapTemplateManager.h>

Public Member Functions

bool getTemplateById (const std::string &templateId, Maria::MapTemplate &result) const
 
bool insertTemplates (const std::vector< MapTemplate > &templates)
 
const std::map< std::string, Maria::MapTemplate > & getTemplatesMap () const
 Get a map of templates indexed by template id.
 
bool readTemplates (const std::string &searchPaths)
 Search for and read all templates in the given directories.
 
std::vector< Maria::MapTemplategetTemplates () const
 Get all currently available template objects.
 

Detailed Description

MapTemplateManager - Handle map templates, including dynamic templates and overlays.

See http://docs.maria.teleplanglobe.com/wiki/Template for documentation on the template XML format.

TODO: Does currently not support prioritized dynamic layers.

Member Function Documentation

◆ readTemplates()

bool MapTemplateManager::readTemplates ( const std::string &  searchPaths)

Search for and read all templates in the given directories.

Parameters
searchPathsSemicolon-separated list of directories to search for template files.
Returns
True if any templates were found and successfully parsed, false if not.

The documentation for this class was generated from the following files: