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
connection
ConnectionAdapter.h
1
/*
2
* ConnectionAdapter.h
3
*
4
* Created on: Sep 16, 2012
5
* Author: Mitchell Wills
6
*/
7
8
#ifndef CONNECTIONADAPTER_H_
9
#define CONNECTIONADAPTER_H_
10
11
class
ConnectionAdapter
;
12
13
#include "networktables2/NetworkTableEntry.h"
14
#include "networktables2/connection/BadMessageException.h"
15
#include "networktables2/util/IOException.h"
16
#include "tables/ITable.h"
17
18
class
ConnectionAdapter
19
{
20
public
:
21
virtual
~
ConnectionAdapter
()
22
{
23
}
24
//returns true if the connection should still be alive
25
virtual
bool
keepAlive() = 0;
26
virtual
void
clientHello(ProtocolVersion protocolRevision) = 0;
27
virtual
void
serverHelloComplete() = 0;
28
virtual
void
protocolVersionUnsupported(ProtocolVersion protocolRevision) = 0;
29
virtual
void
offerIncomingAssignment(
NetworkTableEntry
* newEntry) = 0;
30
virtual
void
offerIncomingUpdate(
NetworkTableEntry
* newEntry, SequenceNumber sequenceNumber,
EntryValue
value) = 0;
31
virtual
NetworkTableEntry
* GetEntry(EntryId) = 0;
32
37
virtual
void
badMessage
(
BadMessageException
& e) = 0;
38
43
virtual
void
ioException
(
IOException
& e) = 0;
44
};
45
46
#endif
/* CONNECTIONADAPTER_H_ */
ConnectionAdapter::badMessage
virtual void badMessage(BadMessageException &e)=0
BadMessageException
Definition:
BadMessageException.h:14
IOException
Definition:
IOException.h:16
ConnectionAdapter::ioException
virtual void ioException(IOException &e)=0
NetworkTableEntry
Definition:
NetworkTableEntry.h:30
ConnectionAdapter
Definition:
ConnectionAdapter.h:18
EntryValue
Definition:
ITable.h:13
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.