Now you can download a copy of these docs so you can use them offline! Download now
DefaultEntryTypes.h
1 /*
2  * DefaultEntryTypes.h
3  *
4  * Created on: Sep 24, 2012
5  * Author: Mitchell Wills
6  */
7 
8 #ifndef DEFAULTENTRYTYPES_H_
9 #define DEFAULTENTRYTYPES_H_
10 
11 class DefaultEntryTypes;
12 
13 #include "networktables2/type/NetworkTableEntryTypeManager.h"
14 
15 
16 
17 static const TypeId BOOLEAN_RAW_ID = 0x00;
18 static const TypeId DOUBLE_RAW_ID = 0x01;
19 static const TypeId STRING_RAW_ID = 0x02;
20 
22 private:
26  class BOOLEAN_t : public NetworkTableEntryType{
27  public:
28  BOOLEAN_t();
32  virtual void sendValue(EntryValue value, DataIOStream& os);
33 
37  virtual EntryValue readValue(DataIOStream& is);
38 
39  virtual bool areEqual(EntryValue v1, EntryValue v2);
40  };
44  class DOUBLE_t : public NetworkTableEntryType{
45  public:
46  DOUBLE_t();
47 
51  virtual void sendValue(EntryValue value, DataIOStream& os);
52 
56  virtual EntryValue readValue(DataIOStream& is);
57 
58  virtual bool areEqual(EntryValue v1, EntryValue v2);
59  };
63  class STRING_t : public NetworkTableEntryType{
64  public:
65  STRING_t();
66 
70  virtual void sendValue(EntryValue value, DataIOStream& os);
71 
75  virtual EntryValue readValue(DataIOStream& is);
76 
80  virtual EntryValue copyValue(EntryValue value);
81 
85  virtual void deleteValue(EntryValue value);
86 
87  virtual bool areEqual(EntryValue v1, EntryValue v2);
88  };
89 public:
96  static void registerTypes(NetworkTableEntryTypeManager* typeManager);
97 
98  static BOOLEAN_t BOOLEAN;
99  static DOUBLE_t DOUBLE;
100  static STRING_t STRING;
101 };
102 
103 
104 
105 
106 #endif /* DEFAULTENTRYTYPES_H_ */
Definition: ITable.h:13
static void registerTypes(NetworkTableEntryTypeManager *typeManager)

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