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
networktables
NetworkTableSubListenerAdapter.h
1
/*
2
* NetworkTableSubListenerAdapter.h
3
*
4
* Created on: Oct 17, 2012
5
* Author: Mitchell Wills
6
*/
7
8
#ifndef NETWORKTABLESUBLISTENERADAPTER_H_
9
#define NETWORKTABLESUBLISTENERADAPTER_H_
10
11
12
class
NetworkTableSubListenerAdapter
;
13
14
#include "tables/ITableListener.h"
15
#include "tables/ITable.h"
16
#include <string>
17
#include <set>
18
#include "networktables/NetworkTable.h"
19
20
21
using namespace
std;
22
23
class
NetworkTableSubListenerAdapter
:
public
ITableListener
{
24
private
:
25
std::string& prefix;
26
NetworkTable
* targetSource;
27
ITableListener
* targetListener;
28
set<std::string> notifiedTables;
29
30
public
:
31
NetworkTableSubListenerAdapter
(std::string& prefix,
NetworkTable
* targetSource,
ITableListener
* targetListener);
32
virtual
~
NetworkTableSubListenerAdapter
();
33
void
ValueChanged(
ITable
* source,
const
std::string& key,
EntryValue
value,
bool
isNew);
34
};
35
36
37
38
#endif
/* NETWORKTABLESUBLISTENERADAPTER_H_ */
ITable
Definition:
ITable.h:26
NetworkTableSubListenerAdapter
Definition:
NetworkTableSubListenerAdapter.h:23
NetworkTable
Definition:
NetworkTable.h:53
EntryValue
Definition:
ITable.h:13
ITableListener
Definition:
ITableListener.h:26
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.