|
void | Init () override |
| Performs platform-specific initialization. More...
|
|
SystemDialogResult | SystemDialog (SystemDialogType type, const std::string &title, const std::string &message) override |
| Displays a system dialog. More...
|
|
void | GetCurrentTimeStamp (SystemTimeStamp *stamp) override |
| Returns a time stamp associated with current time. More...
|
|
long long | TimeStampExactDiff (SystemTimeStamp *before, SystemTimeStamp *after) override |
| Returns the exact (in nanosecond units) difference between two timestamps. More...
|
|
std::string | GetSaveDir () override |
| Returns the save dir location. More...
|
|
void | Usleep (int usec) override |
| Sleep for given amount of microseconds. More...
|
|
TEST_VIRTUAL SystemDialogResult | ConsoleSystemDialog (SystemDialogType type, const std::string &title, const std::string &message) |
| Displays a fallback system dialog using console. More...
|
|
TEST_VIRTUAL SystemTimeStamp * | CreateTimeStamp () |
| Creates a new time stamp object. More...
|
|
TEST_VIRTUAL void | DestroyTimeStamp (SystemTimeStamp *stamp) |
| Destroys a time stamp object. More...
|
|
TEST_VIRTUAL void | CopyTimeStamp (SystemTimeStamp *dst, SystemTimeStamp *src) |
| Copies the time stamp from src to dst. More...
|
|
TEST_VIRTUAL float | TimeStampDiff (SystemTimeStamp *before, SystemTimeStamp *after, SystemTimeUnit unit=STU_SEC) |
| Returns a difference between two timestamps in given time unit. More...
|
|
virtual std::string | GetDataPath () |
| Returns the data path (containing textures, levels, helpfiles, etc) More...
|
|
virtual std::string | GetLangPath () |
| Returns the translations path. More...
|
|
|
static std::string | UTF8_Encode (const std::wstring &wstr) |
| Converts a wide Unicode string to an UTF8 string. More...
|
|
static std::wstring | UTF8_Decode (const std::string &str) |
| Converts an UTF8 string to a wide Unicode String. More...
|
|
static std::unique_ptr< CSystemUtils > | Create () |
| Creates system utils for specific platform. More...
|
|
|
long long | m_counterFrequency = 0 |
|
void CSystemUtilsWindows::Init |
( |
| ) |
|
|
overridevirtual |
Performs platform-specific initialization.
Implements CSystemUtils.
Returns a time stamp associated with current time.
Implements CSystemUtils.
Returns the exact (in nanosecond units) difference between two timestamps.
The difference is after - before.
Implements CSystemUtils.
std::string CSystemUtilsWindows::GetSaveDir |
( |
| ) |
|
|
overridevirtual |
Returns the save dir location.
Reimplemented from CSystemUtils.
void CSystemUtilsWindows::Usleep |
( |
int |
usecs | ) |
|
|
overridevirtual |
Sleep for given amount of microseconds.
Implements CSystemUtils.
std::string CSystemUtilsWindows::UTF8_Encode |
( |
const std::wstring & |
wstr | ) |
|
|
static |
Converts a wide Unicode string to an UTF8 string.
std::wstring CSystemUtilsWindows::UTF8_Decode |
( |
const std::string & |
str | ) |
|
|
static |
Converts an UTF8 string to a wide Unicode String.
The documentation for this class was generated from the following files:
- /build/colobot-4LMcse/colobot-0.1.8/src/app/system_windows.h
- /build/colobot-4LMcse/colobot-0.1.8/src/app/system_windows.cpp