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
ConnectionMonitorThread.h
1
/*
2
* ConnectionMonitorThread.h
3
*
4
* Created on: Sep 22, 2012
5
* Author: Mitchell Wills
6
*/
7
8
#ifndef CONNECTIONMONITORTHREAD_H_
9
#define CONNECTIONMONITORTHREAD_H_
10
11
12
class
ConnectionMonitorThread
;
13
14
#include "networktables2/connection/ConnectionAdapter.h"
15
#include "networktables2/connection/NetworkTableConnection.h"
16
#include "networktables2/thread/PeriodicRunnable.h"
17
18
19
20
26
class
ConnectionMonitorThread
:
public
PeriodicRunnable
{
27
private
:
28
ConnectionAdapter
& adapter;
29
NetworkTableConnection
& connection;
30
31
public
:
37
ConnectionMonitorThread
(
ConnectionAdapter
& adapter,
NetworkTableConnection
& connection);
38
//This can be used it identify which connection adapter instance the thread procedure is running (read-only)
39
const
NetworkTableConnection
*GetNetworkTableConnection()
const
{
return
&connection;}
40
41
void
run
();
42
};
43
44
45
#endif
/* CONNECTIONMONITORTHREAD_H_ */
PeriodicRunnable
Definition:
PeriodicRunnable.h:17
ConnectionMonitorThread
Definition:
ConnectionMonitorThread.h:26
ConnectionAdapter
Definition:
ConnectionAdapter.h:18
NetworkTableConnection
Definition:
NetworkTableConnection.h:30
ConnectionMonitorThread::ConnectionMonitorThread
ConnectionMonitorThread(ConnectionAdapter &adapter, NetworkTableConnection &connection)
Definition:
ConnectionMonitorThread.cpp:12
ConnectionMonitorThread::run
void run()
Definition:
ConnectionMonitorThread.cpp:16
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.