diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/filters/filter.h | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/src/filters/filter.h b/src/filters/filter.h index b13a36650..b840a69da 100644 --- a/src/filters/filter.h +++ b/src/filters/filter.h @@ -29,12 +29,13 @@ class BOTAN_DLL Filter /** * Start a new message. Must be closed by end_msg() before another - * message can be startet. + * message can be started. */ virtual void start_msg() {} /** - * Tell the Filter that the current message shall be ended. + * Notify that the current message is finished; flush buffers and + * do end-of-message processing (if any). */ virtual void end_msg() {} @@ -44,6 +45,16 @@ class BOTAN_DLL Filter */ virtual bool attachable() { return true; } + virtual ~Filter() {} + protected: + void send(const byte[], u32bit); + void send(byte input) { send(&input, 1); } + void send(const MemoryRegion<byte>& in) { send(in.begin(), in.size()); } + Filter(); + private: + Filter(const Filter&) {} + Filter& operator=(const Filter&) { return (*this); } + /** * Start a new message in *this and all following filters. Only for * internal use, not intended for use in client applications. @@ -56,16 +67,6 @@ class BOTAN_DLL Filter */ void finish_msg(); - virtual ~Filter() {} - protected: - void send(const byte[], u32bit); - void send(byte input) { send(&input, 1); } - void send(const MemoryRegion<byte>& in) { send(in.begin(), in.size()); } - Filter(); - private: - Filter(const Filter&) {} - Filter& operator=(const Filter&) { return (*this); } - friend class Pipe; friend class Fanout_Filter; |