#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 (string &filePath, BOOL returnFileNameOnly) |
static BOOL | copyFile (const string &srcFilePath, const string &destFilePath, BOOL failIfExists=TRUE, BOOL createDirectoryIfNotExists=TRUE) |
static BOOL | getFileSize (const string &filePath, DWORD &fileSize) |
static BOOL | getDirFromPath (const string &filePath, string &directory) |
static BOOL | getPathComponents (const string &filePath, string &directory, string &fileName, string &fileExtension) |
static BOOL | createDirectory (const string &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 char *targetPath) |
static BOOL | addRegistryEntry (const char *valueName, const char *valueData, const char *subKeyPath, HKEY hSection=HKEY_CURRENT_USER) |
static BOOL | executeSystemCommand (const char *command, const char *parameters, const char *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 char * | valueName, |
|
|
const char * | valueData, |
|
|
const char * | subKeyPath, |
|
|
HKEY | hSection = HKEY_CURRENT_USER ) |
|
static |
◆ copyFile()
BOOL CommonUtils::copyFile |
( |
const string & | srcFilePath, |
|
|
const string & | destFilePath, |
|
|
BOOL | failIfExists = TRUE, |
|
|
BOOL | createDirectoryIfNotExists = TRUE ) |
|
static |
◆ createDirectory()
BOOL CommonUtils::createDirectory |
( |
const string & | directory | ) |
|
|
static |
◆ createShortcut()
BOOL CommonUtils::createShortcut |
( |
const char * | targetPath | ) |
|
|
static |
◆ executeSystemCommand()
BOOL CommonUtils::executeSystemCommand |
( |
const char * | command, |
|
|
const char * | parameters, |
|
|
const char * | workingDirectory, |
|
|
BOOL | waitForCompletion = FALSE ) |
|
static |
◆ getDirFromPath()
BOOL CommonUtils::getDirFromPath |
( |
const string & | filePath, |
|
|
string & | directory ) |
|
static |
◆ getExeName()
BOOL CommonUtils::getExeName |
( |
string & | filePath, |
|
|
BOOL | returnFileNameOnly ) |
|
static |
◆ getFileSize()
BOOL CommonUtils::getFileSize |
( |
const string & | filePath, |
|
|
DWORD & | fileSize ) |
|
static |
◆ getPathComponents()
BOOL CommonUtils::getPathComponents |
( |
const string & | filePath, |
|
|
string & | directory, |
|
|
string & | fileName, |
|
|
string & | 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: