#ifndef FILEHANDLE_H #define FILEHANDLE_H class FileHandle { public: FileHandle(int fd); ~FileHandle(); FileHandle(const FileHandle &) = delete; void operator=(const FileHandle &) = delete; operator int() const; private: const int fd; }; #endif