Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-06-02 08:51:48

0001 #ifndef SCENARIO_MANAGER_H
0002 #define SCENARIO_MANAGER_H
0003 
0004 /**
0005  * @file ScenarioManager.h
0006  * @author Bryan BERTHOU (SPhN / CEA Saclay)
0007  * @date January 30, 2014
0008  * @version 1.0
0009  */
0010 
0011 #include "../../BaseObject.h"
0012 
0013 namespace PARTONS {
0014 
0015 class Scenario;
0016 
0017 /**
0018  * @class ScenarioManager
0019  * @brief \<singleton\>
0020  */
0021 class ScenarioManager: public BaseObject {
0022 public:
0023     /**
0024      * A static function that provides a unique pointer of this class
0025      *
0026      * @return A unique pointer of this class
0027      */
0028     static ScenarioManager* getInstance();
0029 
0030     void delete_();
0031 
0032     void playScenario(const Scenario &scenario) const;
0033 
0034 private:
0035     static ScenarioManager* pInstance; ///< Private pointer of this class for a unique instance
0036 
0037     /**
0038      * Private default constructor for a unique instance of this class
0039      */
0040     ScenarioManager();
0041 
0042     /**
0043      * Default destructor
0044      */
0045     virtual ~ScenarioManager();
0046 };
0047 
0048 } /* namespace PARTONS */
0049 
0050 #endif /* SCENARIO_MANAGER_H */