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

Public Member Functions

 HttpMapTemplateClient ()
 Constructor for UrlMapRetriever.
 
 ~HttpMapTemplateClient ()
 Destructor for UrlMapRetriever.
 
bool aquireTemplatesFromUrls (const std::string &searchUrls)
 Read maps from url.
 
std::vector< MapTemplategetTemplates ()
 Returns the stored templates.
 
void clearOldMaps ()
 Delete the maps/overlays stored on the retriever.
 
bool parseXMLs (const std::string &xml, std::vector< MapTemplate > &tpls)
 Parses xml file into multiple map templates.
 

Member Function Documentation

◆ aquireTemplatesFromUrls()

bool Maria::HttpMapTemplateClient::aquireTemplatesFromUrls ( const std::string &  searchUrls)

Read maps from url.

Parameters
searchUrlsSemicolon-seperated list of urls to search for template files.
Returns
True if any templates were found and successfully parsed, false if not.

◆ getTemplates()

std::vector< MapTemplate > Maria::HttpMapTemplateClient::getTemplates ( )

Returns the stored templates.

Returns
Returns the stored templates.

◆ parseXMLs()

bool Maria::HttpMapTemplateClient::parseXMLs ( const std::string &  xml,
std::vector< MapTemplate > &  tpls 
)

Parses xml file into multiple map templates.

Parameters
xmlThe xml file to be parsed.
tplsWhere the MapTemplates are written to.
Returns
False if the parsing had an error.

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