Blame view

src/Info/InstrumentMgr.hh 739 Bytes
fbe3c2bb   Benjamin Renard   First commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
 * InstrumentMgr.hh
 *
 *  Created on: Oct 6, 2014
 *      Author: m.mazel
 */

#ifndef INSTRUMENTMGR_HH_
#define INSTRUMENTMGR_HH_

#include <string>

#include "dsgpatt_Singleton.hh"
#include "InstrumentInfo.hh"

namespace AMDA {
namespace Info {

/**
 * @class InstrumentMgr
 * @brief Singleton to manage all instrument information
 * @details
 */
class InstrumentMgr : public ::Singleton<InstrumentMgr> {
public:
	const InstrumentInfoSPtr getInstrumentInfoFromId (const std::string &id);

private:
	InstrumentInfoSPtr getInstrumentInfoFromFile (const std::string &xmlFilename);

	// Instrument Informations list
	InstrumentInfoMap	_instrumentInfoMap;
};

} /* namespace Info */
} /* namespace AMDA */

#endif /* INSTRUMENTMGR_HH_ */