The module class for module ALib CLI.
This is a strict singleton class. The only instance is found with namespace variable alib::CLI.
Definition at line 26 of file clicamp.hpp.
#include <clicamp.hpp>
Public Method Index: | |
CliCamp () | |
Public Method Index: inherited from Camp | |
Camp (Camp &&)=delete | |
Deleted move constructor. | |
Camp (const Camp &)=delete | |
Deleted copy constructor. | |
Camp (const NCString &resourceCategory) | |
virtual | ~Camp () |
Virtual destructor to satisfy C++ abstract type rules. | |
void | BootstrapResource (const NString &name, const String &data) |
void | BootstrapSetConfig (config::Configuration *pConfig) |
void | BootstrapSetResourcePool (lang::resources::ResourcePool *pool) |
config::Configuration & | GetConfig () |
threads::SharedLock & | GetConfigLock () |
const String & | GetResource (const NString &name) |
resources::ResourcePool & | GetResourcePool () |
bool | IsBootstrapped () |
void | operator= (Camp &&)=delete |
Deleted move assignment. | |
void | operator= (const Camp &)=delete |
Deleted copy assignment. | |
const String & | TryResource (const NString &name) |
Protected Method Index: | |
virtual void | bootstrap (BootstrapPhases phase) override |
virtual void | shutdown (ShutdownPhases phase) override |
Protected Method Index: inherited from Camp |
Additional Inherited Members | |
Public Field Index: inherited from Camp | |
NCString | ResourceCategory |
Protected Field Index: inherited from Camp | |
int | bootstrapState = 0 |
config::Configuration * | config = nullptr |
SharedLock * | configLock |
A shared lock associated to member config. | |
bool | isConfigOwner = false |
bool | isResourceOwner = false |
lang::resources::ResourcePool * | resourcePool = nullptr |
CliCamp | ( | ) |
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 33 of file clicamp.cpp.
|
overrideprotectedvirtual |
Initializes this camp.
phase | The initialization phase to perform. |
Implements Camp.
Definition at line 41 of file clicamp.cpp.
|
inlineoverrideprotectedvirtual |
Terminates this camp. (Nothing to do.)
phase | The shutdown phase to perform. |
Implements Camp.
Definition at line 48 of file clicamp.hpp.