AnimatLab  2
Test
ThreadProcessor.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 namespace AnimatSim
10 {
22  class ANIMAT_PORT ThreadProcessor : public AnimatBase
23  {
24  protected:
26  CStdArray<ModuleThreadProcessor *> m_aryModules;
27 
28  virtual int FindModuleProcessorIndex(std::string strModuleName);
29 
30  public:
32  virtual ~ThreadProcessor();
33 
34  static ThreadProcessor *CastToDerived(AnimatBase *lpBase) {return static_cast<ThreadProcessor*>(lpBase);}
35 
36  virtual void CreateModuleProcessor(std::string strModuleName);
37  virtual void RemoveModuleProcessor(std::string strModuleName);
38 
39  virtual void StartThread();
40  virtual void EndThread();
41 
42  virtual void StepSimulation();
43  };
44 
45 } //AnimatSim
Root namespace for the base simulation library for AnimatLab.
Handles processing of a single thread of the simulation.
Animat base class.
Definition: AnimatBase.h:36
CStdArray< ModuleThreadProcessor * > m_aryModules
An Array of module thread processors that will be run within this thread.