From 24d46e151326b1b159603442e74540bf87897a53 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 29 Jul 2009 23:02:26 +0000 Subject: Base64, now more clever with fewer options. --- src/base64.h | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'src/base64.h') diff --git a/src/base64.h b/src/base64.h index 2c3b331..41264e0 100644 --- a/src/base64.h +++ b/src/base64.h @@ -12,16 +12,7 @@ namespace Bu class Base64 : public Bu::Filter { public: - enum Mode - { - Encode = 0x01, - Read = 0x01, - Decode = 0x02, - Write = 0x02 - }; - - public: - Base64( Bu::Stream &rNext, Mode eMode ); + Base64( Bu::Stream &rNext ); virtual ~Base64(); virtual void start(); @@ -38,6 +29,12 @@ namespace Bu size_t iTotalOut; static const char tblEnc[65]; char tblDec[80]; + enum Mode + { + Nothing = 0x00, + Encode = 0x01, + Decode = 0x02, + }; Mode eMode; }; }; -- cgit v1.2.3