CBase64Coding.hpp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #if ! defined( BASE_64_CODING_CLASS_HEADER )
  2. /*
  3. ** Author: Samuel R. Blackburn
  4. ** Internet: [email protected]
  5. **
  6. ** You can use it any way you like as long as you don't try to sell it.
  7. **
  8. ** Any attempt to sell WFC in source code form must have the permission
  9. ** of the original author. You can produce commercial executables with
  10. ** WFC but you can't sell WFC.
  11. **
  12. ** Copyright, 2000, Samuel R. Blackburn
  13. **
  14. ** Workfile: CBase64Coding.hpp
  15. ** Revision: 1.2
  16. ** Modtime: 1/04/00 4:39a
  17. */
  18. #define BASE_64_CODING_CLASS_HEADER
  19. class CBase64Coding
  20. {
  21. private:
  22. // Don't allow canonical behavior (i.e. don't allow this class
  23. // to be passed by value)
  24. CBase64Coding( const CBase64Coding& ) {};
  25. CBase64Coding& operator=( const CBase64Coding& ) { return( *this ); };
  26. public:
  27. // Construction
  28. CBase64Coding();
  29. /*
  30. ** Destructor should be virtual according to MSJ article in Sept 1992
  31. ** "Do More with Less Code:..."
  32. */
  33. virtual ~CBase64Coding();
  34. virtual BOOL Encode( const char * source, int len, char * destination );
  35. };
  36. #endif // BASE_64_CODING_CLASS_HEADER