VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
simComponentList.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: cmpntList.h,v $ $Revision: 1.13 $ $State: Exp $
7 *******************************************************************************/
8 
11 
17 
18 
19 #ifndef DtSimComponentList_H_
20 #define DtSimComponentList_H_
21 
22 #include <vlutil/vlString.h>
23 #include <vlutil/vlList.h>
24 #include "vrfutil/rwList.h"
25 #include <map>
26 
27 class DtSimComponent;
29 
38 
39 
42 {
43 public:
45  DtSimComponentList(const DtString & name,
46  DtReaderWriterRegistry * const parentRegistry = 0);
47 
49  virtual ~DtSimComponentList();
50 
54  virtual void tick(bool hostEntityDestroyed);
55 
56  virtual DtSimComponent * lookupComponent(const DtString & name);
57  virtual std::list<DtSimComponent*> lookupComponentsByType(const DtString & typeString);
58 
59  virtual void addComponent(DtSimComponent * component);
60  virtual void removeComponent(DtSimComponent * component);
61 
62  virtual DtSimComponent * firstComponent();
63  virtual DtSimComponent * lastComponent();
64 
65 protected:
68 
71  virtual void emptyList();
72 
75  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
76  const DtVariableBindingsList& variableBindings);
77 
78 protected:
79 
80  typedef std::map<DtString, DtSimComponent*> DtSimComponentMap;
82 };
83 
84 #endif
85 

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)