www.pudn.com > QQµÁºÅÆ÷QQ2002.zip > UTIL_Base64Coder.h


// UTIL_Base64Coder.h: interface for the UTIL_Base64Coder class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_UTIL_BASE64CODER_H__01D40BD3_89C7_4C95_8299_6E05796DE71C__INCLUDED_) 
#define AFX_UTIL_BASE64CODER_H__01D40BD3_89C7_4C95_8299_6E05796DE71C__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
class UTIL_Base64Coder   
{ 
public: 
	UTIL_Base64Coder(); 
	virtual ~UTIL_Base64Coder(); 
	virtual bool Decode(const CByteArray& source, CByteArray& destination); 
	virtual bool Decode(const CString&    source, CByteArray& destination); 
	virtual bool Encode(const CByteArray& source, CByteArray& destination); 
	virtual bool Encode(const CByteArray& source, CString&    destination); 
	virtual bool Encode(const char *source, int len, CString& destination); 
 
private: 
	// Don't allow canonical behavior (i.e. don't allow this class 
	// to be passed by value) 
	UTIL_Base64Coder(const UTIL_Base64Coder&) {} 
	UTIL_Base64Coder& operator = (const UTIL_Base64Coder&) { return (*this); } 
 
protected: 
	BYTE m_DecoderTable[256]; 
	virtual void m_InitializeDecoderTable(void); 
 
}; 
 
#endif // !defined(AFX_UTIL_BASE64CODER_H__01D40BD3_89C7_4C95_8299_6E05796DE71C__INCLUDED_)