4 #ifndef GloriaTelescope_h
5 #define GloriaTelescope_h 1
17 #include "luiza/StringParameters.h"
61 inline void SetID(
int id) { _id = id; };
64 inline void SetName(std::string name) { _name.push_back(name); };
68 { _longitude=lon; _latitude=lat; _elevation=elev;};
76 inline int GetID() {
return _id;} ;
82 inline std::string
GetName(
int iname=0) {
return _name.at(iname);} ;
86 inline bool IsParameterSet(std::string key) {
return _parameters->isParameterSet(key);} ;
89 inline std::string
GetStringParameter(std::string key) {
return _parameters->getStringVal(key);} ;
92 inline int GetIntParameter(std::string key) {
return _parameters->getIntVal(key);} ;
98 virtual luiza::StringParameters*
parameters() {
return _parameters ; }
104 std::vector< std::string > _name;
106 double _longitude, _latitude, _elevation;
112 luiza::StringParameters* _parameters;
117 std::ostream& operator<< ( std::ostream& s, GloriaTelescope& t ) ;
int GetNameNumber()
Get number of telescope name/aliases.
Definition: GloriaTelescope.h:79
float GetFloatParameter(std::string key)
Get telescope parameter as float.
Definition: GloriaTelescope.h:95
namespace for data storing and exchange formats
Definition: GloriaAstrometry.h:15
int GetIntParameter(std::string key)
Get telescope parameter as int.
Definition: GloriaTelescope.h:92
~GloriaTelescope()
Destructor.
Definition: GloriaTelescope.cc:58
int GetID()
Get telescope ID.
Definition: GloriaTelescope.h:76
void SetPosition(double lon, double lat, double elev)
Define telescope position.
Definition: GloriaTelescope.h:67
std::string GetStringParameter(std::string key)
Get telescope parameter as a string.
Definition: GloriaTelescope.h:89
std::string GetName(int iname=0)
Get telescope name.
Definition: GloriaTelescope.h:82
void AddParameter(std::string name, std::string value)
Add parameter.
Definition: GloriaTelescope.cc:66
Class for storing GLORIA telescope parameters.
Definition: GloriaTelescope.h:36
virtual luiza::StringParameters * parameters()
Return parameters defined for this telescope.
Definition: GloriaTelescope.h:98
void SetName(std::string name)
Add telescope name/alias.
Definition: GloriaTelescope.h:64
void SetID(int id)
Define telescope ID.
Definition: GloriaTelescope.h:61
GloriaTelescope()
Default constructor.
Definition: GloriaTelescope.cc:20
bool IsParameterSet(std::string key)
Check if telescope parameter is set.
Definition: GloriaTelescope.h:86