ParamMgr.hh 934 Bytes
/*
 * ParamMgr.hh
 *
 *  Created on: Oct 6, 2014
 *      Author: m.mazel
 */

#ifndef PARAMMGR_HH_
#define PARAMMGR_HH_

#include <string>

#include "dsgpatt_Singleton.hh"
#include "ParamInfo.hh"

namespace AMDA {

/**
 * @brief Module to retrieve information about a parameter, a dataset, an instrument or a mission.
 */
namespace Info {

/**
 * @class ParamMgr
 * @brief Singleton to manage all paramer information
 * @details
 */
class ParamMgr : public ::Singleton<ParamMgr> {
public:
	const ParamInfoSPtr getParamInfoFromId (const std::string &id, bool forceCreateIfNoExist = false);

	const ParamInfoSPtr cloneParamInfoFromId(const std::string &originId, const std::string &dstId);

private:
	ParamInfoSPtr getParamInfoFromFile (const std::string &paramId,
			const std::string &xmlFilename);

	// Param Informations list
	ParamInfoMap	_paramInfoMap;
};

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

#endif /* PARAMMGR_HH_ */