Initial
This commit is contained in:
36
uudecode/UUENCODE.HPP
Normal file
36
uudecode/UUENCODE.HPP
Normal file
@@ -0,0 +1,36 @@
|
||||
#ifndef _UUTOOL_UUENCODE_HPP_
|
||||
#define _UUTOOL_UUENCODE_HPP_
|
||||
#ifndef _COMMON_WINDOWS_HPP_
|
||||
#include <common/windows.hpp>
|
||||
#endif
|
||||
|
||||
template <class T>
|
||||
class Block;
|
||||
class String;
|
||||
|
||||
class UUEncode
|
||||
{
|
||||
public:
|
||||
UUEncode(void);
|
||||
virtual ~UUEncode();
|
||||
BOOL encode(String srcPathFileName,Block<String> &lineStrings,BOOL initBlock=TRUE);
|
||||
private:
|
||||
BYTE chEncode(int ch)const;
|
||||
};
|
||||
|
||||
inline
|
||||
UUEncode::UUEncode(void)
|
||||
{
|
||||
}
|
||||
|
||||
inline
|
||||
UUEncode::~UUEncode()
|
||||
{
|
||||
}
|
||||
|
||||
inline
|
||||
BYTE UUEncode::chEncode(int ch)const
|
||||
{
|
||||
return (ch?(ch&0x3F)+' ':'`');
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user