Now you can download a copy of these docs so you can use them offline! Download now
NetworkTableEntry.h
1 #ifndef NETWORKTABLEENTRY_H_
2 #define NETWORKTABLEENTRY_H_
3 
4 #include <stdlib.h>
5 #include <stdio.h>
6 #ifndef _WRS_KERNEL
7 #include <stdint.h>
8 #endif
9 
10 typedef uint16_t EntryId;
11 typedef uint16_t SequenceNumber;
12 class NetworkTableEntry;
14 
15 
16 #include "networktables2/connection/DataIOStream.h"
17 #include "networktables2/connection/NetworkTableConnection.h"
18 #include "networktables2/type/NetworkTableEntryType.h"
19 #include "networktables2/util/IllegalStateException.h"
20 #include <string>
21 #include "tables/ITable.h"
22 
23 
31 
32 
33 public:
37  static const EntryId UNKNOWN_ID = 0xFFFF;
41  std::string name;
42 
43  NetworkTableEntry(std::string& name, NetworkTableEntryType* type, EntryValue value);
44  NetworkTableEntry(EntryId id, std::string& name, SequenceNumber sequenceNumber, NetworkTableEntryType* type, EntryValue value);
45  virtual ~NetworkTableEntry();
46 
47  EntryId GetId();
48  EntryValue GetValue();
49  NetworkTableEntryType* GetType();
50  bool PutValue(SequenceNumber newSequenceNumber, EntryValue newValue);
51  void ForcePut(SequenceNumber newSequenceNumber, EntryValue newValue);
52  void ForcePut(SequenceNumber newSequenceNumber, NetworkTableEntryType* type, EntryValue newValue);
53  void MakeDirty();
54  void MakeClean();
55  bool IsDirty();
56  void SendValue(DataIOStream& iostream);
57  SequenceNumber GetSequenceNumber();
58  void SetId(EntryId id);
59  void ClearId();
60  void Send(NetworkTableConnection& connection);
61  void FireListener(TableListenerManager& listenerManager);
62 
63 private:
64  EntryId id;
65  SequenceNumber sequenceNumber;
70  EntryValue value;
71  volatile bool m_isNew;
72  volatile bool m_isDirty;
73 
74  static const SequenceNumber HALF_OF_SEQUENCE_NUMBERS = 32768;
75 
76  NetworkTableEntry& operator=(const NetworkTableEntry& other);
77 };
78 
79 
80 
81 #endif /* NETWORKTABLEENTRY_H_ */
void ClearId()
void ForcePut(SequenceNumber newSequenceNumber, EntryValue newValue)
static const EntryId UNKNOWN_ID
void SendValue(DataIOStream &iostream)
SequenceNumber GetSequenceNumber()
void SetId(EntryId id)
Definition: ITable.h:13
std::string name

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