Initial
This commit is contained in:
86
test/VINFO.HPP
Normal file
86
test/VINFO.HPP
Normal file
@@ -0,0 +1,86 @@
|
||||
#ifndef _TEST_VINFO_HPP_
|
||||
#define _TEST_VINFO_HPP_
|
||||
#ifndef _COMMON_WINDOWS_HPP_
|
||||
#include <common/windows.hpp>
|
||||
#endif
|
||||
|
||||
class VInfo
|
||||
{
|
||||
public:
|
||||
VInfo(void);
|
||||
VInfo(const VInfo &someVInfo);
|
||||
VInfo(DWORD baseAddress,HDC hDC);
|
||||
virtual ~VInfo();
|
||||
VInfo &operator=(const VInfo &someVInfo);
|
||||
BOOL operator==(const VInfo &someVInfo)const;
|
||||
DWORD baseAddress(void)const;
|
||||
void baseAddress(DWORD baseAddress);
|
||||
HDC hDC(void)const;
|
||||
void hDC(HDC hDC);
|
||||
private:
|
||||
DWORD mBaseAddress;
|
||||
HDC mhDC;
|
||||
};
|
||||
|
||||
inline
|
||||
VInfo::VInfo(void)
|
||||
: mBaseAddress(0), mhDC(0)
|
||||
{
|
||||
}
|
||||
|
||||
inline
|
||||
VInfo::VInfo(DWORD baseAddress,HDC hDC)
|
||||
: mBaseAddress(baseAddress), mhDC(hDC)
|
||||
{
|
||||
}
|
||||
|
||||
inline
|
||||
VInfo::VInfo(const VInfo &someVInfo)
|
||||
{
|
||||
*this=someVInfo;
|
||||
}
|
||||
|
||||
inline
|
||||
VInfo::~VInfo()
|
||||
{
|
||||
}
|
||||
|
||||
inline
|
||||
VInfo &VInfo::operator=(const VInfo &someVInfo)
|
||||
{
|
||||
baseAddress(someVInfo.baseAddress());
|
||||
hDC(someVInfo.hDC());
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline
|
||||
BOOL VInfo::operator==(const VInfo &someVInfo)const
|
||||
{
|
||||
return (baseAddress()==someVInfo.baseAddress()&&
|
||||
hDC()==someVInfo.hDC());
|
||||
}
|
||||
|
||||
inline
|
||||
DWORD VInfo::baseAddress(void)const
|
||||
{
|
||||
return mBaseAddress;
|
||||
}
|
||||
|
||||
inline
|
||||
void VInfo::baseAddress(DWORD baseAddress)
|
||||
{
|
||||
mBaseAddress=baseAddress;
|
||||
}
|
||||
|
||||
inline
|
||||
HDC VInfo::hDC(void)const
|
||||
{
|
||||
return mhDC;
|
||||
}
|
||||
|
||||
inline
|
||||
void VInfo::hDC(HDC hDC)
|
||||
{
|
||||
mhDC=hDC;
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user