Many additions and changes.
This commit is contained in:
1 parent
50f6e972de
commit
08169b1c3d
30 files changed
+451
-63
No files matched your search
@@ -0,0 +1,35 @@
|
||||
#ifndef __File_h__
|
||||
#define __File_h__
|
||||
|
||||
#include "includes"
|
||||
|
||||
///
|
||||
/// File
|
||||
///
|
||||
/// File abstraction class for accessing local file system files.
|
||||
///
|
||||
|
||||
namespace coreutils {
|
||||
|
||||
class File {
|
||||
|
||||
public:
|
||||
File(std::string fileName, int mode = O_RDONLY, int authority = 0664);
|
||||
~File();
|
||||
void setBufferSize(size_t size);
|
||||
void read();
|
||||
void write(std::string data);
|
||||
|
||||
char *buffer;
|
||||
size_t size;
|
||||
|
||||
std::string fileName;
|
||||
|
||||
private:
|
||||
int fd;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user