Now you can download a copy of these docs so you can use them offline! Download now
ArrayEntryType.h
1 /*
2  * ArrayEntryType.h
3  *
4  * Created on: Nov 14, 2012
5  * Author: Mitchell Wills
6  */
7 
8 #ifndef ARRAYENTRYTYPE_H_
9 #define ARRAYENTRYTYPE_H_
10 
11 #include <stdlib.h>
12 #include <stdio.h>
13 #ifndef _WRS_KERNEL
14 #include <stdint.h>
15 #endif
16 
17 class ArrayEntryType;
18 
19 #include "networktables2/type/ArrayData.h"
20 #include "networktables2/type/ComplexEntryType.h"
21 
23  uint8_t length;
24  EntryValue* array;
25 };
29 typedef struct ArrayEntryData ArrayEntryData;
30 
34 class ArrayEntryType : public ComplexEntryType {//TODO allow for array of complex type
35 private:
36  NetworkTableEntryType& m_elementType;
37 
38 public:
46  ArrayEntryType(TypeId id, NetworkTableEntryType& elementType);
47 
57 
67  void deleteElement(EntryValue value);
68 
75 
79  void sendValue(EntryValue value, DataIOStream& os);
80 
85 
90 
94  void deleteValue(EntryValue value);
95 
96 
97  bool areEqual(EntryValue v1, EntryValue v2);
98 
102  EntryValue internalizeValue(std::string& key, ComplexData& externalRepresentation, EntryValue currentInteralValue);
103 
107  void exportValue(std::string& key, EntryValue internalData, ComplexData& externalRepresentation);
108 
109 
110 
111 };
112 
113 #endif /* ARRAYENTRYTYPE_H_ */
void deleteValue(EntryValue value)
EntryValue copyElement(EntryValue value)
bool areEqual(EntryValue v1, EntryValue v2)
void sendValue(EntryValue value, DataIOStream &os)
EntryValue copyValue(EntryValue value)
void deleteElement(EntryValue value)
ArrayEntryType(TypeId id, NetworkTableEntryType &elementType)
EntryValue internalizeValue(std::string &key, ComplexData &externalRepresentation, EntryValue currentInteralValue)
bool areElementsEqual(EntryValue v1, EntryValue v2)
void exportValue(std::string &key, EntryValue internalData, ComplexData &externalRepresentation)
EntryValue readValue(DataIOStream &is)
Definition: ITable.h:13

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