#include <Common.h>
|
| static wstring | strToWStr (const char *input) |
| static string | wStrToStr (const wchar_t *input) |
| static RECT | SRectToRECT (const Bounds &rect) |
| static BOOL | getExeName (wstring &filePath, BOOL returnFileNameOnly) |
| static BOOL | getExeFolder (wstring &exeDir) |
| static BOOL | copyFile (const wstring &srcFilePath, const wstring &destFilePath, BOOL failIfExists=TRUE, BOOL createDirectoryIfNotExists=TRUE) |
| static BOOL | getFileSize (const wstring &filePath, DWORD &fileSize) |
| static BOOL | getDirFromPath (const wstring &filePath, wstring &directory) |
| static BOOL | getPathComponents (const wstring &filePath, wstring &directory, wstring &fileName, wstring &fileExtension) |
| static BOOL | createDirectory (const wstring &directory) |
| static BOOL | readFile (FILE *fp, void *buffer, size_t size, DWORD atOffset) |
| static BOOL | writeFile (FILE *fp, void *buffer, size_t size, DWORD atOffset) |
| static BOOL | createShortcut (const wchar_t *targetPath) |
| static BOOL | addRegistryEntry (const wchar_t *valueName, const wchar_t *valueData, const wchar_t *subKeyPath, HKEY hSection=HKEY_CURRENT_USER) |
| static BOOL | executeSystemCommand (const wchar_t *command, const wchar_t *parameters, const wchar_t *workingDirectory, BOOL waitForCompletion=FALSE) |
| static BOOL | isDigit (wchar_t ch) |
| static BOOL | isAlpha (wchar_t ch) |
| static BOOL | isDigitOrAlpha (wchar_t ch) |
| static wstring | systemTimeToStrYYYYMMDD (const SYSTEMTIME &sysTime) |
| static SYSTEMTIME | strYYYYMMDDToSystemTime (const wstring &strYYYYMMDD) |
◆ addRegistryEntry()
| BOOL CommonUtils::addRegistryEntry |
( |
const wchar_t * | valueName, |
|
|
const wchar_t * | valueData, |
|
|
const wchar_t * | subKeyPath, |
|
|
HKEY | hSection = HKEY_CURRENT_USER ) |
|
static |
◆ copyFile()
| BOOL CommonUtils::copyFile |
( |
const wstring & | srcFilePath, |
|
|
const wstring & | destFilePath, |
|
|
BOOL | failIfExists = TRUE, |
|
|
BOOL | createDirectoryIfNotExists = TRUE ) |
|
static |
◆ createDirectory()
| BOOL CommonUtils::createDirectory |
( |
const wstring & | directory | ) |
|
|
static |
◆ createShortcut()
| BOOL CommonUtils::createShortcut |
( |
const wchar_t * | targetPath | ) |
|
|
static |
◆ executeSystemCommand()
| BOOL CommonUtils::executeSystemCommand |
( |
const wchar_t * | command, |
|
|
const wchar_t * | parameters, |
|
|
const wchar_t * | workingDirectory, |
|
|
BOOL | waitForCompletion = FALSE ) |
|
static |
◆ getDirFromPath()
| BOOL CommonUtils::getDirFromPath |
( |
const wstring & | filePath, |
|
|
wstring & | directory ) |
|
static |
◆ getExeFolder()
| BOOL CommonUtils::getExeFolder |
( |
wstring & | exeDir | ) |
|
|
static |
◆ getExeName()
| BOOL CommonUtils::getExeName |
( |
wstring & | filePath, |
|
|
BOOL | returnFileNameOnly ) |
|
static |
◆ getFileSize()
| BOOL CommonUtils::getFileSize |
( |
const wstring & | filePath, |
|
|
DWORD & | fileSize ) |
|
static |
◆ getPathComponents()
| BOOL CommonUtils::getPathComponents |
( |
const wstring & | filePath, |
|
|
wstring & | directory, |
|
|
wstring & | fileName, |
|
|
wstring & | fileExtension ) |
|
static |
◆ isAlpha()
| BOOL CommonUtils::isAlpha |
( |
wchar_t | ch | ) |
|
|
static |
◆ isDigit()
| BOOL CommonUtils::isDigit |
( |
wchar_t | ch | ) |
|
|
static |
◆ isDigitOrAlpha()
| BOOL CommonUtils::isDigitOrAlpha |
( |
wchar_t | ch | ) |
|
|
static |
◆ readFile()
| BOOL CommonUtils::readFile |
( |
FILE * | fp, |
|
|
void * | buffer, |
|
|
size_t | size, |
|
|
DWORD | atOffset ) |
|
static |
◆ SRectToRECT()
| RECT CommonUtils::SRectToRECT |
( |
const Bounds & | rect | ) |
|
|
static |
◆ strToWStr()
| wstring CommonUtils::strToWStr |
( |
const char * | input | ) |
|
|
static |
◆ strYYYYMMDDToSystemTime()
| SYSTEMTIME CommonUtils::strYYYYMMDDToSystemTime |
( |
const wstring & | strYYYYMMDD | ) |
|
|
static |
◆ systemTimeToStrYYYYMMDD()
| wstring CommonUtils::systemTimeToStrYYYYMMDD |
( |
const SYSTEMTIME & | sysTime | ) |
|
|
static |
◆ writeFile()
| BOOL CommonUtils::writeFile |
( |
FILE * | fp, |
|
|
void * | buffer, |
|
|
size_t | size, |
|
|
DWORD | atOffset ) |
|
static |
◆ wStrToStr()
| string CommonUtils::wStrToStr |
( |
const wchar_t * | input | ) |
|
|
static |
The documentation for this class was generated from the following file: