first commit
This commit is contained in:
35
inc/hgl/proc/FifoInputStream.h
Normal file
35
inc/hgl/proc/FifoInputStream.h
Normal file
@@ -0,0 +1,35 @@
|
||||
#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
|
Reference in New Issue
Block a user