The module class.
This is a strict singleton class. The only instance is found with namespace variable alib::CONFIG.
Definition at line 39 of file configcamp.hpp.
#include <configcamp.hpp>
Public Method Index: | |
| ConfigCamp () | |
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 |
| ConfigCamp | ( | ) |
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 35 of file configcamp.cpp.
|
overrideprotectedvirtual |
Initializes this camp.
| phase | The initialization phase to perform. |
Implements Camp.
Definition at line 43 of file configcamp.cpp.
|
inlineoverrideprotectedvirtual |
Terminates this camp. (Nothing to do.)
| phase | The shutdown phase to perform. |
Implements Camp.
Definition at line 60 of file configcamp.hpp.