Files
allwpilib/networktables/cpp/include/networktables2/stream/IOStreamFactory.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

33 lines
568 B
C++

/*
* IOStreamFactory.h
*
* Created on: Sep 22, 2012
* Author: Mitchell Wills
*/
#ifndef IOSTREAMFACTORY_H_
#define IOSTREAMFACTORY_H_
#include "networktables2/stream/IOStream.h"
/**
* A factory that will create the same IOStream. A stream returned by this factory should be closed before calling createStream again
*
* @author Mitchell
*
*/
class IOStreamFactory
{
public:
virtual ~IOStreamFactory()
{
}
/**
* @return create a new stream
* @throws IOException
*/
virtual IOStream* createStream() = 0;
};
#endif /* IOSTREAMFACTORY_H_ */