![]() |
Mapper
0.9.0
API documentation
|
A directory of known CRS templates. More...
#include <crs_template.h>
Public Types | |
using | TemplateList = std::vector< std::unique_ptr< const CRSTemplate > > |
Public Member Functions | |
CRSTemplateRegistry () | |
Creates an object for accessing the CRS template directory. More... | |
const TemplateList & | list () const |
Returns the list of registered CRS templates. More... | |
const CRSTemplate * | find (const QString &id) const |
Finds the registered CRS template with the given id, or returns nullptr if the given id does not exist. More... | |
void | add (std::unique_ptr< const CRSTemplate > temp) |
Registers a CRS template. More... | |
A directory of known CRS templates.
All instances of this class provide access to the same list.
using OpenOrienteering::CRSTemplateRegistry::TemplateList = std::vector< std::unique_ptr<const CRSTemplate> > |
OpenOrienteering::CRSTemplateRegistry::CRSTemplateRegistry | ( | ) |
Creates an object for accessing the CRS template directory.
void OpenOrienteering::CRSTemplateRegistry::add | ( | std::unique_ptr< const CRSTemplate > | temp | ) |
Registers a CRS template.
Note that the directory and thus the template outlives the CRSTemplateRegistry object.
const CRSTemplate * OpenOrienteering::CRSTemplateRegistry::find | ( | const QString & | id | ) | const |
Finds the registered CRS template with the given id, or returns nullptr if the given id does not exist.
|
inline |
Returns the list of registered CRS templates.