Добавил:
Studfiles2
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:Тестовые примеры / ch7 / pipefile
.h #ifndef PIPEFILE_H /* This is pipefile.h */
#define PIPEFILE_H
#include "filebase.h"
/* A class to encapsulate POSIX and UNIX FIFO file objects' properties */
class pipefile : public filebase
{
public:
pipefile(const char* fn, int flags, int prot) : filebase(fn,flags,prot) {};
int create( const char* fn, mode_t prot)
{ return mkfifo(fn,prot); };
streampos tellg() { return (streampos)-1; };
};
#endif /* pipefile.h */
Соседние файлы в папке ch7