Initial
This commit is contained in:
37
mdiwin/INT.HPP
Normal file
37
mdiwin/INT.HPP
Normal file
@@ -0,0 +1,37 @@
|
||||
#ifndef _INTEGER_HPP_
|
||||
#define _INTEGER_HPP_
|
||||
|
||||
class Integer
|
||||
{
|
||||
public:
|
||||
Integer(void);
|
||||
Integer(int value);
|
||||
~Integer();
|
||||
operator int(void)const;
|
||||
private:
|
||||
int mValue;
|
||||
};
|
||||
|
||||
inline
|
||||
Integer::Integer(void)
|
||||
: mValue(0)
|
||||
{
|
||||
}
|
||||
|
||||
inline
|
||||
Integer::Integer(int value)
|
||||
: mValue(value)
|
||||
{
|
||||
}
|
||||
|
||||
inline
|
||||
Integer::~Integer()
|
||||
{
|
||||
}
|
||||
|
||||
inline
|
||||
Integer::operator int(void)const
|
||||
{
|
||||
return mValue;
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user