WPILibC++  unspecified
DsClient.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) FIRST 2016-2018. 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 NTCORE_DSCLIENT_H_
9 #define NTCORE_DSCLIENT_H_
10 
11 #include <support/SafeThread.h>
12 
13 #include "Log.h"
14 
15 namespace nt {
16 
17 class Dispatcher;
18 
19 class DsClient {
20  public:
21  DsClient(Dispatcher& dispatcher, wpi::Logger& logger);
22  ~DsClient() = default;
23 
24  void Start(unsigned int port);
25  void Stop();
26 
27  private:
28  class Thread;
30  Dispatcher& m_dispatcher;
31  wpi::Logger& m_logger;
32 };
33 
34 } // namespace nt
35 
36 #endif // NTCORE_DSCLIENT_H_
Definition: Dispatcher.h:130
Definition: DsClient.h:19
Definition: IEntryNotifier.h:16
Definition: DsClient.cpp:20
Definition: Logger.h:30