![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cSystemHelper.h>
Public Member Functions | |
cSystemHelper () | |
cString | get_OSInfoStr () const |
cStringF | get_SystemName () |
The node name of the machine. More... | |
![]() | |
virtual | ~CObject () |
virtual bool | isValidCheck () const noexcept |
< memory allocation and structure definitions are valid. More... | |
virtual void | AssertValid () const |
< memory allocation and structure definitions are valid. More... | |
virtual void | Serialize (cArchive &a) |
![]() | |
cHeapObject () | |
virtual | ~cHeapObject () |
bool | IsValidInsideN (INT_PTR index) const |
bool | IsValidInsidePtr (void const *pTest) const |
virtual size_t | GetHeapStatsThis (OUT ITERATE_t &iAllocCount) const |
virtual bool | isValidCheck () const noexcept |
Static Public Member Functions | |
static cStringF __stdcall | get_SystemDir () |
![]() | |
static cSystemHelper *__stdcall | get_Single () |
static TYPE2 *__stdcall | get_SingleT () |
static cSystemHelper &__stdcall | I () |
![]() | |
static bool | isSingleCreated () noexcept |
static TYPE * | get_SingleU () noexcept |
static TYPE * | get_Single () |
template<class TYPE2 > | |
static TYPE2 *__stdcall | get_SingleCast () |
static TYPE & | I () noexcept |
![]() | |
static void __stdcall | ReleaseModule (HMODULE hMod) |
Public Attributes | |
cSystemInfo & | m_Info |
Protected Attributes | |
cStringF | m_sSystemName |
Cached (or overridden for debug purposes) system name. More... | |
![]() | |
HMODULE | m_hModuleLoaded |
What modules loaded this ? So singletons can be destroyed if DLL/SO unloads. More... | |
Friends | |
class | cSingleton< cSystemHelper > |
Additional Inherited Members | |
![]() | |
static cThreadLockFast | sm_LockSingle |
common lock for all cSingleton. More... | |
![]() | |
cSingleton (cSystemHelper *pObject, const TYPEINFO_t &rAddrCode=typeid(cSystemHelper)) noexcept | |
virtual | ~cSingleton () |
![]() | |
cSingletonStatic (TYPE *pObject) noexcept | |
virtual | ~cSingletonStatic () noexcept |
![]() | |
cSingletonRegister (const TYPEINFO_t &rAddrCode) noexcept | |
virtual | ~cSingletonRegister () |
void | RegisterSingleton () |
![]() | |
const void * | get_HeapPtr () const noexcept override |
Get the top level (outermost, freeable) class pointer. I can delete get_HeapPtr(). More... | |
![]() | |
static TYPE * | sm_pThe = nullptr |
pointer to the one and only object of this TYPE. ASSUME automatically init to = nullptr. More... | |
The system as a whole. (as far as we can detect) not just the current running app/process or user login. The detected system params may be effected by system virtualization.
Gray::cSystemHelper::cSystemHelper | ( | ) |
cString Gray::cSystemHelper::get_OSInfoStr | ( | ) | const |
More detailed info about the actual OS we are running on. like GRAY_BUILD_NAME but dynamic. number of processors and processor type etc. Do we support MMX etc ? http://sourceforge.net/p/predef/wiki/Architectures/
Where does the OS keep its files. CSIDL_SYSTEM GetSystemDirectory() == "C:\Windows\System32" or "C:\Windows\SysWOW64" for 32 bit app on 64 bit OS.
cStringF Gray::cSystemHelper::get_SystemName | ( | ) |
The node name of the machine.
Get this computers station name. UNDER_CE -> "HKLM\Ident\Name"
|
friend |
cSystemInfo& Gray::cSystemHelper::m_Info |
|
protected |
Cached (or overridden for debug purposes) system name.