LRT14  1.0
 All Classes Namespaces Functions Variables Enumerations Enumerator
LiveNetworkSender.h
1 #ifndef LIVE_NETWORK_SENDER_H_
2 #define LIVE_NETWORK_SENDER_H_
3 
4 #include <WPILib.h>
5 #include <vector>
6 #include <typeinfo>
7 #include <map>
8 
10 
15 {
16 public:
17  static LiveNetworkSender* Instance();
18  static void Initialize();
19  static void Finalize();
20 
22 
26  void Run();
27 
34  template<typename T> void Send(T value, std::string key, std::string table);
35 
40  static void RegisterLiveNetworkSendable(LiveNetworkSendable* liveNetworkSendable);
41 
42 private:
44 
45  static LiveNetworkSender* m_instance;
46 
47  static std::vector<LiveNetworkSendable*> liveNetworkSendables;
48 
49  std::map<string, NetworkTable*> tables;
50 };
51 
52 #endif /* LIVE_NETWORK_SENDER_H_ */