#pragma once
|
#include <string>
|
|
class CToolUnits
|
{
|
public:
|
CToolUnits();
|
~CToolUnits();
|
|
public:
|
static std::string timeToString(ULONGLONG time);
|
static std::string timeToString2(ULONGLONG time);
|
static std::string timeToString3(ULONGLONG time);
|
static ULONGLONG stringToTime(const char* pszTime);
|
static CString& floatToString1(float value, CString& strOut);
|
static CString& floatToString3(float value, CString& strOut);
|
static ULONGLONG getTimestamp();
|
static void createDir(const char* pszDir);
|
static BOOL copyTextToClipboard(CWnd* pWnd, const CString& strText);
|
static std::string getCurrentExePath();
|
static bool isFile(const std::string& path);
|
static bool isDirectory(const std::string& path);
|
static double toInt32(const char* pBuffer);
|
static double toInt16(const char* pBuffer);
|
static void setDlgItemDouble(CWnd* pWnd, int nCtrlId, double value);
|
};
|