Files
allwpilib/networktables/cpp/include/networktables2/client/NetworkTableClient.h
Brad Miller 69d9ad70ab CMake Changes
This is the changes made by Patrick Plenefisch converting the native
code to use CMake and the CMake Maven Plugin, as opposed to the
native Maven plugin. This is to allow for compatibility with newer
versions of the GCC toolchain. All the cpp sources were moved from
maven style directories to cpp style directories for CMake.

Change-Id: I67f5e3608948f37c83b0990d232105a3784f8593
2014-04-01 11:18:29 -04:00

57 lines
1.1 KiB
C++

/*
* NetworkTableClient.h
*
* Created on: Nov 3, 2012
* Author: Mitchell Wills
*/
#ifndef NETWORKTABLECLIENT_H_
#define NETWORKTABLECLIENT_H_
class NetworkTableClient;
#include "networktables2/NetworkTableNode.h"
#include "networktables2/client/ClientConnectionAdapter.h"
#include "networktables2/WriteManager.h"
#include "networktables2/TransactionDirtier.h"
/**
* A client node in NetworkTables 2.0
*
* @author Mitchell
*
*/
class NetworkTableClient : public NetworkTableNode{
private:
ClientConnectionAdapter& adapter;
WriteManager& writeManager;
TransactionDirtier* dirtier;
public:
/**
* Create a new NetworkTable Client
* @param streamFactory
* @param threadManager
* @param transactionPool
*/
NetworkTableClient(IOStreamFactory& streamFactory, NetworkTableEntryTypeManager& typeManager, NTThreadManager& threadManager);
~NetworkTableClient();
/**
* force the client to disconnect and reconnect to the server again. Will connect if the client is currently disconnected
*/
void reconnect();
void Close();
void stop();
bool IsConnected();
bool IsServer();
};
#endif /* NETWORKTABLECLIENT_H_ */