WPILibC++
unspecified
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
IEntryNotifier.h
1
/*----------------------------------------------------------------------------*/
2
/* Copyright (c) FIRST 2017. All Rights Reserved. */
3
/* Open Source Software - may be modified and shared by FRC teams. The code */
4
/* must be accompanied by the FIRST BSD license file in the root directory of */
5
/* the project. */
6
/*----------------------------------------------------------------------------*/
7
8
#ifndef NT_IENTRYNOTIFIER_H_
9
#define NT_IENTRYNOTIFIER_H_
10
11
#include <climits>
12
13
#include "ntcore_cpp.h"
14
15
namespace
nt
{
16
17
class
IEntryNotifier
{
18
public
:
19
IEntryNotifier
() =
default
;
20
IEntryNotifier
(
const
IEntryNotifier
&) =
delete
;
21
IEntryNotifier
& operator=(
const
IEntryNotifier
&) =
delete
;
22
virtual
~
IEntryNotifier
() =
default
;
23
virtual
bool
local_notifiers()
const
= 0;
24
25
virtual
unsigned
int
Add(
26
std::function<
void
(
const
EntryNotification
& event)> callback,
27
llvm::StringRef
prefix,
unsigned
int
flags) = 0;
28
virtual
unsigned
int
Add(
29
std::function<
void
(
const
EntryNotification
& event)> callback,
30
unsigned
int
local_id,
unsigned
int
flags) = 0;
31
virtual
unsigned
int
AddPolled(
unsigned
int
poller_uid,
32
llvm::StringRef
prefix,
33
unsigned
int
flags) = 0;
34
virtual
unsigned
int
AddPolled(
unsigned
int
poller_uid,
unsigned
int
local_id,
35
unsigned
int
flags) = 0;
36
37
virtual
void
NotifyEntry(
unsigned
int
local_id,
StringRef
name,
38
std::shared_ptr<Value> value,
unsigned
int
flags,
39
unsigned
int
only_listener = UINT_MAX) = 0;
40
};
41
42
}
// namespace nt
43
44
#endif // NT_IENTRYNOTIFIER_H_
nt::EntryNotification
NetworkTables Entry Notification.
Definition:
ntcore_cpp.h:165
nt
Definition:
IEntryNotifier.h:15
llvm::StringRef
StringRef - Represent a constant reference to a string, i.e.
Definition:
StringRef.h:42
nt::IEntryNotifier
Definition:
IEntryNotifier.h:17
build
cppSource
ntcore-cpp
sources
IEntryNotifier.h
Generated on Sat Oct 28 2017 21:17:16 for WPILibC++ by
1.8.11