CMCore/inc/hgl/proc/FifoInputStream.h

36 lines
679 B
C
Raw Normal View History

2019-08-19 19:19:58 +08:00
#ifndef HGL_MULTI_PROC_FIFO_INPUT_STREAM_INCLUDE
#define HGL_MULTI_PROC_FIFO_INPUT_STREAM_INCLUDE
#include<hgl/Fifo.h>
#include<hgl/io/InputStream.h>
namespace hgl
{
namespace io
{
/**
*
*/
class FifoInputStream:public InputStream
{
Fifo *f;
public:
FifoInputStream(Fifo *_f)
{
f=_f;
}
virtual ~FifoInputStream()
{
if(f)
delete f;
}
};//class FifoInputStream
}//namespace io
}//namespace hgl
#endif//HGL_MULTI_PROC_FIFO_INPUT_STREAM_INCLUDE