Blame view

src/Info/DataSetMgr.hh 726 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
/*
 * DataSetMgr.hh
 *
 *  Created on: Oct 6, 2014
 *      Author: m.mazel
 */

#ifndef DATASETMGR_HH_
#define DATASETMGR_HH_

#include <string>

#include "dsgpatt_Singleton.hh"
#include "DataSetInfo.hh"

namespace AMDA {
namespace Info {

/**
 * @class DataSetMgr
 * @brief Singleton to manage all dataset information
 * @details
 */
class DataSetMgr : public ::Singleton<DataSetMgr> {
public:
	const DataSetInfoSPtr getDataSetInfoFromId (const std::string &id, bool forceCreateIfNoExist = false);

private:
	DataSetInfoSPtr getDataSetInfoFromFile (const std::string &xmlFilename);

	// DataSet Informations list
	DataSetInfoMap	_dataSetInfoMap;
};

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

#endif /* DATASETMGR_HH_ */