summaryrefslogtreecommitdiff
path: root/shared/file_io.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:14:37 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:14:37 +0200
commit8bf668665b107469086f16cb8ad23e47d479d2b4 (patch)
tree66a91ef06a8caa7cd6819dcbe1860693d3eda8d5 /shared/file_io.h
parent3.21 (diff)
downloadFreeFileSync-8bf668665b107469086f16cb8ad23e47d479d2b4.tar.gz
FreeFileSync-8bf668665b107469086f16cb8ad23e47d479d2b4.tar.bz2
FreeFileSync-8bf668665b107469086f16cb8ad23e47d479d2b4.zip
4.0
Diffstat (limited to 'shared/file_io.h')
-rw-r--r--shared/file_io.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/shared/file_io.h b/shared/file_io.h
index 6f87845b..76713e5b 100644
--- a/shared/file_io.h
+++ b/shared/file_io.h
@@ -29,11 +29,11 @@ typedef FILE* FileHandle;
class FileInput
{
public:
- FileInput(const Zstring& filename); //throw (FileError: ErrorNotExisting)
+ FileInput(const Zstring& filename); //throw FileError, ErrorNotExisting
FileInput(FileHandle handle, const Zstring& filename); //takes ownership!
~FileInput();
- size_t read(void* buffer, size_t bytesToRead); //throw (FileError); returns actual number of bytes read
+ size_t read(void* buffer, size_t bytesToRead); //throw FileError; returns actual number of bytes read
bool eof(); //end of file reached
private:
@@ -54,11 +54,11 @@ public:
ACC_OVERWRITE,
ACC_CREATE_NEW
};
- FileOutput(const Zstring& filename, AccessFlag access); //throw (FileError: ErrorTargetPathMissing, ErrorTargetExisting)
+ FileOutput(const Zstring& filename, AccessFlag access); //throw FileError, ErrorTargetPathMissing, ErrorTargetExisting
FileOutput(FileHandle handle, const Zstring& filename); //takes ownership!
~FileOutput();
- void write(const void* buffer, size_t bytesToWrite); //throw (FileError)
+ void write(const void* buffer, size_t bytesToWrite); //throw FileError
private:
FileOutput(const FileOutput&);
bgstack15