Colobot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
CSystemUtilsWindows Class Reference
Inheritance diagram for CSystemUtilsWindows:
Inheritance graph
[legend]

Public Member Functions

virtual void Init () OVERRIDE
 Performs platform-specific initialization.
 
virtual SystemDialogResult SystemDialog (SystemDialogType type, const std::string &title, const std::string &message) OVERRIDE
 Displays a system dialog.
 
virtual void GetCurrentTimeStamp (SystemTimeStamp *stamp) OVERRIDE
 Returns a time stamp associated with current time.
 
virtual long long TimeStampExactDiff (SystemTimeStamp *before, SystemTimeStamp *after) OVERRIDE
 Returns the exact (in nanosecond units) difference between two timestamps. More...
 
virtual std::string GetSaveDir () OVERRIDE
 Returns the save dir location.
 
virtual void Usleep (int usec) OVERRIDE
 Sleep for given amount of microseconds.
 
- Public Member Functions inherited from CSystemUtils
TEST_VIRTUAL SystemDialogResult ConsoleSystemDialog (SystemDialogType type, const std::string &title, const std::string &message)
 Displays a fallback system dialog using console.
 
TEST_VIRTUAL SystemTimeStampCreateTimeStamp ()
 Creates a new time stamp object.
 
TEST_VIRTUAL void DestroyTimeStamp (SystemTimeStamp *stamp)
 Destroys a time stamp object.
 
TEST_VIRTUAL void CopyTimeStamp (SystemTimeStamp *dst, SystemTimeStamp *src)
 Copies the time stamp from src to dst.
 
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)
 
virtual std::string GetLangPath ()
 Returns the translations path.
 

Static Public Member Functions

static std::string UTF8_Encode (const std::wstring &wstr)
 Converts a wide Unicode string to an UTF8 string.
 
static std::wstring UTF8_Decode (const std::string &str)
 Converts an UTF8 string to a wide Unicode String.
 
- Static Public Member Functions inherited from CSystemUtils
static CSystemUtilsCreate ()
 Creates system utils for specific platform.
 
- Static Public Member Functions inherited from CSingleton< CSystemUtils >
static CSystemUtilsGetInstance ()
 
static CSystemUtilsGetInstancePointer ()
 
static bool IsCreated ()
 

Protected Attributes

long long m_counterFrequency
 

Additional Inherited Members

- Static Protected Attributes inherited from CSingleton< CSystemUtils >
static CSystemUtilsm_instance = nullptr
 

Member Function Documentation

long long int CSystemUtilsWindows::TimeStampExactDiff ( SystemTimeStamp before,
SystemTimeStamp after 
)
virtual

Returns the exact (in nanosecond units) difference between two timestamps.

The difference is after - before.

Implements CSystemUtils.


The documentation for this class was generated from the following files: