AnimatLab  2
Test
SimulationMgr.h
1 #pragma once
2 
3 namespace AnimatSim
4 {
5 
6  class ANIMAT_PORT SimulationMgr : public AnimatBase
7  {
8  protected:
9  CStdPtrArray<SimulationThread> m_arySimThreads;
10 
11  SimulationMgr(void);
12  virtual ~SimulationMgr(void);
13 
14  public:
16  static SimulationMgr &Instance();
17 
18  static SimulationMgr *CastToDerived(AnimatBase *lpBase) {return static_cast<SimulationMgr*>(lpBase);}
19 
20  virtual CStdPtrArray<SimulationThread> &SimThreads() {return m_arySimThreads;};
21  virtual SimulationThread *CreateSimulation(std::string strSimFile, bool bForceNoWindows = false);
22  virtual void ShutdownAllSimulations();
23  virtual AnimatBase *FindByID(std::string strID, bool bThrowError = true);
24  };
25 
26  void ANIMAT_PORT ActiveSim(Simulator *lpActive);
27  Simulator ANIMAT_PORT *ActiveSim();
28 
29 }
Simulates the entire environment.
Definition: Simulator.h:31
Root namespace for the base simulation library for AnimatLab.
Animat base class.
Definition: AnimatBase.h:36