mirror of
https://github.com/autc04/Retro68.git
synced 2024-10-12 11:24:09 +00:00
24 lines
382 B
C
24 lines
382 B
C
|
#ifndef RESTYPE_H
|
||
|
#define RESTYPE_H
|
||
|
|
||
|
#include <string>
|
||
|
#include <iosfwd>
|
||
|
|
||
|
class ResType
|
||
|
{
|
||
|
int x;
|
||
|
public:
|
||
|
ResType() : x(0) {}
|
||
|
ResType(int x) : x(x) {}
|
||
|
ResType(const std::string& s);
|
||
|
|
||
|
operator int() const { return x; }
|
||
|
bool operator<(ResType y) const { return x < y.x; }
|
||
|
|
||
|
operator std::string();
|
||
|
};
|
||
|
|
||
|
std::ostream& operator<<(std::ostream& out, ResType t);
|
||
|
|
||
|
#endif // RESTYPE_H
|