ALib C++ Framework
by
Library Version: 2511 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
appclicamp.inl
1//##################################################################################################
2// ALib C++ Framework
3// Configuration Sample
4//
5// Copyright 2025 A-Worx GmbH, Germany
6// Published under Boost Software License (a free software license, see LICENSE.txt)
7//##################################################################################################
8ALIB_EXPORT namespace alib::app {
9
10/// This camp holds resources for the predefined CLI functionality.
11/// It is recommended common practice to inject further (and missing) resources into this
12/// camp in an overloaded version of the method #"App::onBsPrepareConfig;*".
14 public:
15 /// Constructor. Passes version number and resource name to the module class.
16 AppCliCamp() : Camp("APPCLI") {}
17
18 protected:
19 /// Initialization of the module.
21 virtual void Bootstrap() override;
22
23 /// Terminate this module. (Nothing to do.)
25 virtual void Shutdown( alib::ShutdownPhases ) override {}
26};
27
28} // namespace [alib::app]
29
30namespace alib {
31
32/// The singleton instance of the camp class used by class #"AppCli".
33extern app::AppCliCamp APPCLI_CAMP;
34
35} // namespace [alib]
36
#define ALIB_DLL
Definition alib.inl:573
#define ALIB_EXPORT
Definition alib.inl:562
virtual void Shutdown(alib::ShutdownPhases) override
Terminate this module. (Nothing to do.).
AppCliCamp()
Constructor. Passes version number and resource name to the module class.
virtual void Bootstrap() override
Initialization of the module.
Camp(const NCString &resourceCategory)
Definition camp.inl:106
ShutdownPhases
Termination levels usable with #"alib_mod_bs_camps;Bootstrapping ALib Camps".
Definition camp.inl:42
app::AppCliCamp APPCLI_CAMP
The singleton instance of the camp class used by class #"AppCli".