-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathUtil.h
More file actions
30 lines (25 loc) · 760 Bytes
/
Copy pathUtil.h
File metadata and controls
30 lines (25 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include <string>
#include <Dialogs.h>
#ifndef _UTIL_
#define _UTIL_
using namespace std;
class Util
{
public:
static char* PtoCStr(unsigned char *s);
static std::string PtoStr(unsigned char *s);
static unsigned char* CtoPStr(char *s);
static unsigned char* StrToPStr(string str);
static void Debug(string msg);
static void DebugClient(string msg);
static void FrameDefaultButton(DialogPtr dialog, short itemNo, bool active);
static bool IsControlHilited(DialogPtr dialog, short itemNo);
static string UrlEncode(string &value);
static double MicrosecondToDouble(register const UnsignedWide *epochPtr);
static void Sleep(int seconds);
void StartTimer();
int StopTimer();
private:
UnsignedWide _startTime;
};
#endif // _UTIL_