Mapper  0.9.0
API documentation
Public Types | Public Member Functions | List of all members
OpenOrienteering::CRSTemplateRegistry Class Reference

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...
 

Detailed Description

A directory of known CRS templates.

All instances of this class provide access to the same list.

Member Typedef Documentation

◆ TemplateList

using OpenOrienteering::CRSTemplateRegistry::TemplateList = std::vector< std::unique_ptr<const CRSTemplate> >

Constructor & Destructor Documentation

◆ CRSTemplateRegistry()

OpenOrienteering::CRSTemplateRegistry::CRSTemplateRegistry ( )

Creates an object for accessing the CRS template directory.

Member Function Documentation

◆ add()

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.

◆ find()

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.

◆ list()

const CRSTemplateRegistry::TemplateList & OpenOrienteering::CRSTemplateRegistry::list ( ) const
inline

Returns the list of registered CRS templates.


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