Home
Roadside
Carputer
geoHist
software
FRC
Blog
Now you can download a copy of these docs so you can use them offline!
Download now
Main Page
Related Pages
Classes
Files
File List
networktables2
type
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
21
class
DefaultEntryTypes
{
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_ */
DefaultEntryTypes
Definition:
DefaultEntryTypes.h:21
DataIOStream
Definition:
DataIOStream.h:30
NetworkTableEntryTypeManager
Definition:
NetworkTableEntryTypeManager.h:15
NetworkTableEntryType
Definition:
NetworkTableEntryType.h:33
EntryValue
Definition:
ITable.h:13
DefaultEntryTypes::registerTypes
static void registerTypes(NetworkTableEntryTypeManager *typeManager)
Definition:
DefaultEntryTypes.cpp:85
Generated on Sat Apr 26 2014 12:26:45 for WPILibC++ by
1.8.6
© 2006-2009 Dustin Spicuzza. All rights reserved.
Powered by Onnac
I do not condone or encourage graffiti. Please paint responsibly.