AnimatLab  2
Test
ActivatedItemMgr.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 namespace AnimatSim
10 {
28  class ANIMAT_PORT ActivatedItemMgr : public AnimatBase
29  {
30  protected:
34  CStdArray<ActivatedItem *> m_aryItems;
35 
40  CStdPtrMap<std::string, ActivatedItem> m_aryItemsMap;
41 
42  public:
44  virtual ~ActivatedItemMgr();
45 
46  static ActivatedItemMgr *CastToDerived(AnimatBase *lpBase) {return static_cast<ActivatedItemMgr*>(lpBase);}
47 
48  virtual void Add(ActivatedItem *lpItem);
49  virtual void Remove(std::string strID, bool bThrowError = true);
50  virtual ActivatedItem *Find(std::string strID, int &iIndex, bool bThrowError);
51  virtual ActivatedItem *Find(std::string strID, bool bThrowError = true);
52  virtual int FindListPos(std::string strID, bool bThrowError = true);
53 
54  virtual void Reset();
55  virtual void Initialize();
56  virtual void ResetSimulation();
57  virtual void ReInitialize();
58  virtual void StepSimulation();
59  };
60 
61 } //AnimatSim
Base manager class for ActivatedItem's.
Root namespace for the base simulation library for AnimatLab.
CStdPtrMap< std::string, ActivatedItem > m_aryItemsMap
Base class for all activated items.
Definition: ActivatedItem.h:27
CStdArray< ActivatedItem * > m_aryItems
Animat base class.
Definition: AnimatBase.h:36