#pragma once //#include //#include //#include //#include #include "system/base.hpp" #include "xstring.hpp" class xint { private: int value; public: xint(int val = 0) :value(val) {} xint(double val) :value((int)val) {} xint(xstring val) :value(val.toInt()) {} public: operator int() { return value; } double toDouble() { return (double)value; } xstring toString() { return xstring(value); } };