mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
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
39 lines
695 B
C++
39 lines
695 B
C++
/*
|
|
* IOStreamProvider.h
|
|
*
|
|
* Created on: Sep 22, 2012
|
|
* Author: Mitchell Wills
|
|
*/
|
|
|
|
#ifndef IOSTREAMPROVIDER_H_
|
|
#define IOSTREAMPROVIDER_H_
|
|
|
|
#include "networktables2/stream/IOStream.h"
|
|
|
|
/**
|
|
* An object that will provide the IOStream of clients to a NetworkTable Server
|
|
*
|
|
* @author mwills
|
|
*
|
|
*/
|
|
class IOStreamProvider
|
|
{
|
|
public:
|
|
virtual ~IOStreamProvider()
|
|
{
|
|
}
|
|
/**
|
|
*
|
|
* @return a new IOStream normally from a server
|
|
* @throws IOException
|
|
*/
|
|
virtual IOStream* accept() = 0;
|
|
/**
|
|
* Close the source of the IOStreams. {@link #accept()} should not be called after this is called
|
|
* @throws IOException
|
|
*/
|
|
virtual void close() = 0;
|
|
};
|
|
|
|
#endif /* IOSTREAMPROVIDER_H_ */
|