diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:11:09 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:11:09 +0200 |
commit | 9cc790869ed3905c78c7eeeb0bb44f800b3f2af4 (patch) | |
tree | 1c085bbf2302be294866c4fc6e0d225f8abbc346 /shared/serialize.h | |
parent | 3.14 (diff) | |
download | FreeFileSync-9cc790869ed3905c78c7eeeb0bb44f800b3f2af4.tar.gz FreeFileSync-9cc790869ed3905c78c7eeeb0bb44f800b3f2af4.tar.bz2 FreeFileSync-9cc790869ed3905c78c7eeeb0bb44f800b3f2af4.zip |
3.15
Diffstat (limited to 'shared/serialize.h')
-rw-r--r-- | shared/serialize.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/shared/serialize.h b/shared/serialize.h index 8da0a449..db1848d5 100644 --- a/shared/serialize.h +++ b/shared/serialize.h @@ -27,18 +27,18 @@ Zstring readString(wxInputStream& stream); void writeString(wxOutputStream& stream, const Zstring& str); -class ReadInputStream //throw FileError() +class ReadInputStream //throw (FileError) { protected: ReadInputStream(wxInputStream& stream, const wxString& errorObjName) : stream_(stream), errorObjName_(errorObjName) {} template <class T> - T readNumberC() const; //throw FileError(), checked read operation + T readNumberC() const; //throw (FileError), checked read operation - Zstring readStringC() const; //throw FileError(), checked read operation + Zstring readStringC() const; //throw (FileError), checked read operation typedef boost::shared_ptr<std::vector<char> > CharArray; //there's no guarantee std::string has a ref-counted implementation... so use this "thing" - CharArray readArrayC() const; //throw FileError() + CharArray readArrayC() const; //throw (FileError) void check() const; @@ -49,22 +49,22 @@ protected: private: wxInputStream& stream_; - void throwReadError() const; //throw FileError() + void throwReadError() const; //throw (FileError) const wxString& errorObjName_; //used for error text only }; -class WriteOutputStream //throw FileError() +class WriteOutputStream //throw (FileError) { protected: WriteOutputStream(const wxString& errorObjName, wxOutputStream& stream) : stream_(stream), errorObjName_(errorObjName) {} template <class T> - void writeNumberC(T number) const; //throw FileError(), checked write operation + void writeNumberC(T number) const; //throw (FileError), checked write operation - void writeStringC(const Zstring& str) const; //throw FileError(), checked write operation + void writeStringC(const Zstring& str) const; //throw (FileError), checked write operation - void writeArrayC(const std::vector<char>& buffer) const; //throw FileError() + void writeArrayC(const std::vector<char>& buffer) const; //throw (FileError) void check() const; @@ -75,7 +75,7 @@ protected: private: wxOutputStream& stream_; - void throwWriteError() const; //throw FileError() + void throwWriteError() const; //throw (FileError) const wxString& errorObjName_; //used for error text only! }; |