DataSetMgr.hh 726 Bytes
/*
 * 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_ */