39 lines
377 B
C++
39 lines
377 B
C++
#ifndef _BYTE_HPP_
|
|
#define _BYTE_HPP_
|
|
#include <mdiwin/windows.hpp>
|
|
|
|
class Byte
|
|
{
|
|
public:
|
|
Byte(void);
|
|
Byte(BYTE value);
|
|
~Byte();
|
|
operator BYTE(void)const;
|
|
private:
|
|
BYTE mData;
|
|
};
|
|
|
|
inline
|
|
Byte::Byte(void)
|
|
: mData(0)
|
|
{
|
|
}
|
|
|
|
inline
|
|
Byte::Byte(BYTE someByte)
|
|
: mData(someByte)
|
|
{
|
|
}
|
|
|
|
inline
|
|
Byte::~Byte()
|
|
{
|
|
}
|
|
|
|
inline
|
|
Byte::operator BYTE(void)const
|
|
{
|
|
return mData;
|
|
}
|
|
#endif
|