diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2016-03-26 17:12:52 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2016-03-26 17:20:27 +0900 |
| commit | d64089632e82a2548752c7a6baaa68365a795a74 (patch) | |
| tree | 57fc7b85a8c1290975d58fa4761b04a7695bf7e3 /src/IOFile.h | |
| parent | c81b1321122e8509b55c94c0cbca0d8d6d319f0c (diff) | |
| parent | a7cd943a06b1a5ff4515b57060b84037f8d01f9f (diff) | |
Merge branch 'master' into random-webseeding
Diffstat (limited to 'src/IOFile.h')
| -rw-r--r-- | src/IOFile.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/IOFile.h b/src/IOFile.h index bb810435..8d3fa39b 100644 --- a/src/IOFile.h +++ b/src/IOFile.h @@ -44,10 +44,11 @@ namespace aria2 { // This is a wrapper base class intended to provide // fopen/fclose/fread/fwrite/fgets functionality. -class IOFile:public OutputFile { +class IOFile : public OutputFile { private: typedef void (IOFile::*unspecified_bool_type)() const; void goodState() const {} + public: IOFile() {} virtual ~IOFile() {} @@ -84,6 +85,7 @@ public: static const char WRITE[]; // Mode for append static const char APPEND[]; + protected: virtual size_t onRead(void* ptr, size_t count) = 0; virtual size_t onWrite(const void* ptr, size_t count) = 0; |
