ALib C++ Framework
by
Library Version: 2605 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
appcamp.hpp
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;*".
13class AppCamp : public alib::camp::Camp {
14 public:
15 /// Constructor. Passes version number and resource name to the module class.
16 AppCamp() : Camp("APP") {}
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
30ALIB_EXPORT namespace alib {
31
32/// The singleton instance of the camp class used by class #"App".
33extern app::AppCamp APP;
34
35} // namespace [alib]
#define ALIB_DLL
#define ALIB_EXPORT
virtual void Bootstrap() override
Initialization of the module.
Definition appcamp.cpp:85
virtual void Shutdown(alib::ShutdownPhases) override
Terminate this module. (Nothing to do.).
Definition appcamp.hpp:25
AppCamp()
Constructor. Passes version number and resource name to the module class.
Definition appcamp.hpp:16
Camp(const NCString &resourceCategory)
Definition camp.hpp:104
Definition alox.cpp:14
ShutdownPhases
Termination levels usable with #"alib_mod_bs_camps;Bootstrapping ALib Camps".
Definition camp.hpp:40
app::AppCamp APP
The singleton instance of the camp class used by class #"App".
Definition appcamp.cpp:1