Now you can download a copy of these docs so you can use them offline! Download now
NetworkTableNode.h
1 /*
2  * NetworkTableNode.h
3  *
4  * Created on: Sep 24, 2012
5  * Author: Mitchell Wills
6  */
7 
8 #ifndef NETWORKTABLENODE_H_
9 #define NETWORKTABLENODE_H_
10 
11 
12 class NetworkTableNode;
13 
14 #include "networktables2/AbstractNetworkTableEntryStore.h"
15 #include "networktables2/client/ClientConnectionListenerManager.h"
16 #include "networktables2/type/NetworkTableEntryType.h"
17 #include "networktables2/type/ComplexData.h"
18 #include "networktables2/type/ComplexEntryType.h"
19 #include "tables/IRemote.h"
20 #include <string>
21 #include <vector>
22 
23 
33 
34 protected:
37 
38 public:
43  virtual ~NetworkTableNode();
44 
45 
46 
47  void PutBoolean(std::string& name, bool value);
48  bool GetBoolean(std::string& name);
49 
50  void PutDouble(std::string& name, double value);
51  double GetDouble(std::string& name);
52 
53  void PutString(std::string& name, std::string& value);
54  std::string& GetString(std::string& name);
55 
56  void PutComplex(std::string& name, ComplexData& value);
57 
58  void retrieveValue(std::string& name, ComplexData& externalData);
59 
66  void PutValue(std::string& name, NetworkTableEntryType* type, EntryValue value);
67  void PutValue(NetworkTableEntry* entry, EntryValue value);
68 
69  EntryValue GetValue(std::string& name);
70 
71 
76  bool ContainsKey(std::string& key);
77 
81  virtual void Close() = 0;
82 
83 private:
84  std::vector<IRemoteConnectionListener*> remoteListeners;
85 public:
86  void AddConnectionListener(IRemoteConnectionListener* listener, bool immediateNotify);
88  void FireConnectedEvent();
89  void FireDisconnectedEvent();
90 
91 
92 private:
93  std::vector<ITableListener*> tableListeners;
94 public:
95  void AddTableListener(ITableListener* listener, bool immediateNotify);
96  void RemoveTableListener(ITableListener* listener);
97  void FireTableListeners(std::string& key, EntryValue value, bool isNew);
98 };
99 
100 
101 
102 
103 #endif /* NETWORKTABLENODE_H_ */
void PutValue(std::string &name, NetworkTableEntryType *type, EntryValue value)
AbstractNetworkTableEntryStore & GetEntryStore()
virtual void Close()=0
void AddConnectionListener(IRemoteConnectionListener *listener, bool immediateNotify)
void RemoveConnectionListener(IRemoteConnectionListener *listener)
bool ContainsKey(std::string &key)
Definition: ITable.h:13

Generated on Sat Apr 26 2014 12:26:45 for WPILibC++ by doxygen 1.8.6