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
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
;
13
class
TableListenerManager
;
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
30
class
NetworkTableEntry
{
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;
69
NetworkTableEntryType
* type;
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_ */
DataIOStream
Definition:
DataIOStream.h:30
NetworkTableEntry::ClearId
void ClearId()
Definition:
NetworkTableEntry.cpp:113
NetworkTableEntryType
Definition:
NetworkTableEntryType.h:33
NetworkTableEntry::ForcePut
void ForcePut(SequenceNumber newSequenceNumber, EntryValue newValue)
Definition:
NetworkTableEntry.cpp:55
NetworkTableEntry::UNKNOWN_ID
static const EntryId UNKNOWN_ID
Definition:
NetworkTableEntry.h:37
NetworkTableEntry::SendValue
void SendValue(DataIOStream &iostream)
Definition:
NetworkTableEntry.cpp:90
NetworkTableEntry::GetSequenceNumber
SequenceNumber GetSequenceNumber()
Definition:
NetworkTableEntry.cpp:97
NetworkTableEntry
Definition:
NetworkTableEntry.h:30
NetworkTableEntry::SetId
void SetId(EntryId id)
Definition:
NetworkTableEntry.cpp:105
NetworkTableConnection
Definition:
NetworkTableConnection.h:30
TableListenerManager
Definition:
AbstractNetworkTableEntryStore.h:30
EntryValue
Definition:
ITable.h:13
NetworkTableEntry::name
std::string name
Definition:
NetworkTableEntry.h:41
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.