summaryrefslogtreecommitdiff
path: root/p2pvr/util/fileHandle.h
blob: 3c8d45ed23591013900ea94c007047db28df5a81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#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