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
37 lines
487 B
C++
37 lines
487 B
C++
/*
|
|
* FDIOStream.h
|
|
*
|
|
* Created on: Sep 27, 2012
|
|
* Author: Mitchell Wills
|
|
*/
|
|
|
|
#ifndef FDIOSTREAM_H_
|
|
#define FDIOSTREAM_H_
|
|
|
|
|
|
|
|
class FDIOStream;
|
|
|
|
|
|
#include "networktables2/stream/IOStream.h"
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
class FDIOStream : public IOStream{
|
|
private:
|
|
//FILE* f;
|
|
int fd;
|
|
public:
|
|
FDIOStream(int fd);
|
|
virtual ~FDIOStream();
|
|
int read(void* ptr, int numbytes);
|
|
int write(const void* ptr, int numbytes);
|
|
void flush();
|
|
void close();
|
|
};
|
|
|
|
|
|
|
|
#endif /* FDIOSTREAM_H_ */
|