MissionMgr.hh 691 Bytes
/*
 * MissionMgr.hh
 *
 *  Created on: Oct 6, 2014
 *      Author: m.mazel
 */

#ifndef MISSIONMGR_HH_
#define MISSIONMGR_HH_

#include <string>

#include "dsgpatt_Singleton.hh"
#include "MissionInfo.hh"

namespace AMDA {
namespace Info {

/**
 * @class MissionMgr
 * @brief Singleton to manage all mission information
 * @details
 */
class MissionMgr : public ::Singleton<MissionMgr> {
public:
	const MissionInfoSPtr getMissionInfoFromId (const std::string &id);

private:
	MissionInfoSPtr getMissionInfoFromFile (const std::string &xmlFilename);

	// Mission Informations list
	MissionInfoMap	_missionInfoMap;
};

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

#endif /* MISSIONMGR_HH_ */