![]() |
Maria GDK 5.0.0.737
Documentation of native code in develop branch
|
#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::MapTemplate > | getTemplates () const |
Get all currently available template objects. | |
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.
bool MapTemplateManager::readTemplates | ( | const std::string & | searchPaths | ) |
Search for and read all templates in the given directories.
searchPaths | Semicolon-separated list of directories to search for template files. |