blob: ac585414893b919bf3fed40874598b7900129754 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#ifndef T2DLL_UT2UTILS_H
#define T2DLL_UT2UTILS_H
#include "../common.h"
class AFX_CLASS_EXPORT UT2Utils {
public:
static unsigned int Float2Int(float inValue);
static void GetRoomNumberString(int inNumber, CString& outStr);
static void GetHourMinute(int inValue, int& outHour, int& outMinute);
static void GetMonetaryString(int inValue, CString& outStr);
static int Randomize(int inRange) {
return (inRange == 0) ? 0 : (rand() % inRange);
}
};
#endif
|