Registry of atmosphere models. More...
#include <ModelRegister.h>
Public Member Functions | |
ModelType & | Get (const std::string &name) |
const ModelType & | Get (const std::string &name) const |
void | RegisterModel (const std::string &modelName, ModelType *const model) |
~ModelRegister () | |
Private Types | |
typedef std::map< std::string, ModelType * > | InternalCollection |
Private Attributes | |
InternalCollection | fMap |
Registry of atmosphere models.
Definition at line 28 of file ModelRegister.h.
|
private |
Definition at line 39 of file ModelRegister.h.
ModelRegister::~ModelRegister | ( | ) |
Definition at line 72 of file ModelRegister.cc.
ModelType & ModelRegister::Get | ( | const std::string & | name | ) |
Definition at line 36 of file ModelRegister.cc.
References ERROR.
const ModelType & ModelRegister::Get | ( | const std::string & | name | ) | const |
Definition at line 54 of file ModelRegister.cc.
References ERROR.
void ModelRegister::RegisterModel | ( | const std::string & | modelName, |
ModelType *const | model | ||
) |
Definition at line 27 of file ModelRegister.cc.
|
private |
Definition at line 40 of file ModelRegister.h.