#ifndef __P64_h_ #define __P64_h_ #include class P64Decoder { private: unsigned char value[256]; static const unsigned char badValue = 255; public: // Create an object, rather than just using a function, so that we can // create some tables once, then do table lookup during the converstion. // Reuse this object as much as possible for effeciency. The decode // method is completely thread safe because it const. P64Decoder(); bool decode(std::string input, std::string &output) const; }; #endif