BMA Server Framework
/home/bradarant/barant/ServerCore/File.h
1 #ifndef __File_h__
2 #define __File_h__
3 
4 #include "includes"
5 
11 
12 namespace core {
13 
14  class File {
15 
16  public:
17  File(std::string fileName, int mode = O_RDONLY, int authority = 0664);
18  ~File();
19  void setBufferSize(size_t size);
20  void read();
21  void write(std::string data);
22 
23  char *buffer;
24  size_t size;
25 
26  std::string fileName;
27 
28  private:
29  int fd;
30 
31  };
32 
33 }
34 
35 #endif
Definition: File.h:14
Definition: Command.cpp:4