Deskflow 1.22.0.197
Keyboard and mouse sharing utility
|
Delegating implementation of architecture dependent interfaces. More...
#include <Arch.h>
Public Member Functions | |
Arch () | |
Arch (Arch *arch) | |
~Arch () override=default | |
void | init () override |
Call init on other arch classes. | |
Public Member Functions inherited from ArchString | |
ArchString ()=default | |
ArchString (const ArchString &)=delete | |
ArchString (ArchString &&)=delete | |
~ArchString () override=default | |
ArchString & | operator= (const ArchString &)=delete |
ArchString & | operator= (ArchString &&)=delete |
int | convStringMBToWC (wchar_t *, const char *, uint32_t n, bool *errors) const |
Convert multibyte string to wide character string. | |
int | convStringWCToMB (char *, const wchar_t *, uint32_t n, bool *errors) const |
Convert wide character string to multibyte string. | |
EWideCharEncoding | getWideCharEncoding () const |
Return the architecture's native wide character encoding. | |
Public Member Functions inherited from IInterface | |
virtual | ~IInterface ()=default |
Interface destructor does nothing. |
Static Public Member Functions | |
static Arch * | getInstance () |
Return the singleton instance. | |
static void | setInstance (Arch *s) |
static void | sleep (double timeout) |
blocks calling thread for timout seconds | |
static double | time () |
time |
Additional Inherited Members | |
Public Types inherited from ArchString | |
enum class | EWideCharEncoding : uint8_t { kUCS2 , kUCS4 , kUTF16 , kUTF32 , kPlatformDetermined } |
Wide character encodings. More... |
Delegating implementation of architecture dependent interfaces.
This class is a centralized interface to all architecture dependent interface implementations (except miscellaneous functions). It instantiates an implementation of each interface and delegates calls to each method to those implementations. Clients should use the ARCH
macro to access this object. Clients must also instantiate exactly one of these objects before attempting to call any method, typically at the beginning of main()
.
Arch::Arch | ( | ) |
|
explicit |
|
overridedefault |
|
static |
Return the singleton instance.
The client must have instantiated exactly once Arch object before calling this function.
|
override |
Call init on other arch classes.
Some arch classes depend on others to exist first. When init is called these classes will have ARCH available for use.
|
inlinestatic |
|
static |
blocks calling thread for timout seconds
timeout | - blocking time in seconds. if < 0 not blocked if == 0 then caller yields the CPU |
|
static |
time