#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 int toInt32(const char* pBuffer);
|
static int toInt16(const char* pBuffer);
|
static BOOL getBit(const char c, int index);
|
static void setBit(char* p, int index);
|
static void setDlgItemDouble(CWnd* pWnd, int nCtrlId, double value);
|
static std::vector<CString> GetFileNamesInDirectory(const CString& strFolderPath, const CString& strExtension);
|
static std::string getRecipePath();
|
static std::string getCurrentTimeString();
|
static bool startsWith(const std::string& str, const std::string& prefix);
|
};
|