4 #ifndef GloriaNetworkMgr_h
5 #define GloriaNetworkMgr_h 1
17 #include "GloriaTelescope.h"
56 inline long GetID() {
return _id;} ;
70 {
return _telescopeNameMap.find(name)!=_telescopeNameMap.end();};
74 {
return _telescopeIdMap.find(
id)!=_telescopeIdMap.end();};
88 std::vector< GloriaTelescope > _telescopeVec;
90 std::map< std::string, int > _telescopeNameMap;
92 std::map< int, int > _telescopeIdMap;
99 std::ostream& operator<< ( std::ostream& s, GloriaNetworkMgr& n ) ;
void LoadConfigXML(std::string fileName)
Load network configuration from file.
Definition: GloriaNetworkMgr.cc:116
long GetDate()
Get configuration date.
Definition: GloriaNetworkMgr.h:59
~GloriaNetworkMgr()
Destructor.
Definition: GloriaNetworkMgr.cc:68
namespace for data storing and exchange formats
Definition: GloriaAstrometry.h:15
Class for storing GLORIA network configuration.
Definition: GloriaNetworkMgr.h:33
std::string GetAuthor()
Get configuration author.
Definition: GloriaNetworkMgr.h:62
int GetTelescopeNumber()
Number of telescopes defined in the configuration.
Definition: GloriaNetworkMgr.h:66
bool IsTelescopeDefined(int id)
Check if telescope configuration is defined.
Definition: GloriaNetworkMgr.h:73
Class for storing GLORIA telescope parameters.
Definition: GloriaTelescope.h:36
GloriaNetworkMgr()
Default constructor.
Definition: GloriaNetworkMgr.cc:46
bool IsTelescopeDefined(std::string name)
Check if telescope configuration is defined.
Definition: GloriaNetworkMgr.h:69
long GetID()
Get configuration ID.
Definition: GloriaNetworkMgr.h:56
GloriaTelescope * GetTelescope(std::string name)
Get telescope configuration by name or alias.
Definition: GloriaNetworkMgr.cc:75