This is a strict singleton class representing module ALib BaseCamp . The only instance is found with namespace variable alib::BASECAMP.
class CalendarDateTime
Definition at line 103 of file basecamp.hpp.
#include <basecamp.hpp>
Public Field Index: | |
bool | HasConsoleWindow |
String | LocaleFound |
bool | WaitForKeyPressOnTermination =false |
Public Field Index: inherited from Camp | |
NCString | ResourceCategory |
Public Method Index: | |
ALIB_API | BaseCamp () |
ALIB_API bool | IsDebuggerPresent () |
Public Method Index: inherited from Camp | |
Camp (Camp &&)=delete | |
Camp (const Camp &)=delete | |
Camp (const NCString &resourceCategory) | |
virtual | ~Camp () |
void | BootstrapResource (const NString &name, const String &data) |
void | BootstrapSetConfig (config::Configuration *pConfig) |
void | BootstrapSetResourcePool (lang::resources::ResourcePool *pool) |
config::Configuration & | GetConfig () |
const String & | GetResource (const NString &name) |
resources::ResourcePool & | GetResourcePool () |
bool | IsBootstrapped () |
void | operator= (Camp &&)=delete |
void | operator= (const Camp &)=delete |
const String & | TryResource (const NString &name) |
bool HasConsoleWindow |
This flag indicates if the current process has console output window attached. While this is not detectable in Unix like systems (or just with huge efforts), in windows it is. The determination is performed in bootstrap and done as follows
true
is returned.In addition, this public flag may be modified at run-time (after method Bootstrap was invoked).
Definition at line 139 of file basecamp.hpp.
String LocaleFound |
This string is set during bootstrapping in the case that a locale information was found (via standard environment variables or ALib variable LOCALE ) and successfully set.
Otherwise this string is nulled.
Definition at line 147 of file basecamp.hpp.
bool WaitForKeyPressOnTermination =false |
If true
, within Shutdown, it is waited for a key press in the console window.
By default, this flag is enabled when debugging a console application under Visual Studio.
This default behavior can be overruled by setting configuration variable ALIB_WAIT_FOR_KEY_PRESS.
In addition, this public flag may be modified at run-time (after method Bootstrap was invoked).
Definition at line 120 of file basecamp.hpp.
BaseCamp | ( | ) |
Constructor.
While this is public, it must not be invoked as this is a strict singleton type. (See notes in 3.2 Class Camp).
Definition at line 232 of file basecamp.cpp.
|
overrideprotectedvirtual |
Implementation of Camp::bootstrap .
In phase BootstrapPhases::Final performs:
In glibc versions of ALib (GNU/unix) probably invoke glibc method setlocale(), depending on the setting of the environment variables LANG and LANGUAGE and depending on ALib configuration variable ALIB_LOCALE.
In addition, invokes NumberFormat::SetFromLocale on static singleton NumberFormat::Global .
phase | The initialization phase to perform. |
Implements Camp.
Definition at line 240 of file basecamp.cpp.
bool IsDebuggerPresent | ( | ) |
If true
, the current process is under the hood of a debugger.
true
if the application is run in a debugger. Definition at line 1065 of file basecamp.cpp.
|
overrideprotectedvirtual |
Terminates this module. (Nothing to do.)
phase | The shutdown phase to perform. |
Implements Camp.
Definition at line 1010 of file basecamp.cpp.