This header-file is part of the ALib C++ Framework.
© 2013-2025 A-Worx GmbH, Germany. Published under Boost Software License.
Definition in file camp.prepro.hpp.
#include "alib/alib.inl"Go to the source code of this file.
Macros | |
| #define | ALIB_CAMP_ENUM(T, TRecord, Camp, ResName) |
| #define | ALIB_CAMP_OMIT_DEFAULT_RESOURCES 0 |
| #define | ALIB_RESOURCED_IN_CAMP(T, Camp, ResName) |
| #define ALIB_CAMP_ENUM | ( | T, | |
| TRecord, | |||
| Camp, | |||
| ResName ) |
Combines macros ALIB_ENUMS_ASSIGN_RECORD and ALIB_RESOURCED_IN_CAMP.
| T | The enumeration to assign a record and resources to. |
| TRecord | The record type to assign. |
| ResName | Resource name string. |
| Camp | Pointer to the Camp that provides the ResourcePool object. |
Definition at line 24 of file camp.prepro.hpp.
| #define ALIB_CAMP_OMIT_DEFAULT_RESOURCES 0 |
If set, code that defines static default resource strings is pruned, and thus, all static resource string data is pruned from the library's executable's data segment.
The omission occurs in the implementations of virtual void Bootstrap() =0 of various ALib Modules, where methods void Bootstrap(const NString&, const NString&, const String&) and virtual void BootstrapBulk(const nchar*, ...) =0 are used to define the default resources.
If resources are omitted, the bootstrap process has to be customized to use an external resource provider. Otherwise the library has undefined behavior as resources are missing.
Definition at line 29 of file camp.prepro.hpp.
| #define ALIB_RESOURCED_IN_CAMP | ( | T, | |
| Camp, | |||
| ResName ) |
Variant of macro ALIB_RESOURCED, which specializes the type trait ResourcedTraits for type T to use the resource-backend found in the given Camp, as well as its default ResourceCategory.
true.| T | The type to specialize the type trait ResourcedTraits for. |
| Camp | Pointer to the Camp that provides the ResourcePool object. |
| ResName | Expression providing the resource name. |
Definition at line 21 of file camp.prepro.hpp.