LRT14  1.0
 All Classes Namespaces Functions Variables Enumerations Enumerator
ComponentData.h
1 #ifndef COMPONENT_DATA_H_
2 #define COMPONENT_DATA_H_
3 
4 #include <WPILib.h>
5 #include <string>
6 #include <map>
7 #include <vector>
8 #include "../Logging/Loggable.h"
9 
13 class ComponentData : public Loggable
14 {
15 public:
16  ComponentData(std::string name);
17 
18  static void Initialize();
19  static void Finalize();
20 
21  static void ResetAllCommands();
22 
23 protected:
24  virtual void ResetCommands() = 0;
25 
26  static ComponentData* GetComponentData(std::string name);
27 
28 private:
29  static std::map<string, ComponentData*> componentData_map;
30  static std::vector<ComponentData*> data;
31 };
32 
33 #endif