8#if !defined(ALIB_C20_MODULES) || ((ALIB_C20_MODULES != 0) && (ALIB_C20_MODULES != 1))
9# error "Configuration MACRO ALIB_C20_MODULES has to be given to the compiler as either 0 or 1"
20 module ALib.Variables.ResourcePool;
21 import ALib.Strings.StdIOStream;
22 import ALib.EnumRecords;
24 import ALib.Exceptions;
28 import ALib.Variables;
55 va_start(args, category);
56 auto cursor=
Self().Root();
57#if ALIB_CHARACTERS_WIDE
69 #if ALIB_CHARACTERS_WIDE
71 auto child= cursor.CreatePathIfNotExistent(wName).first;
73 auto child= cursor.CreatePathIfNotExistent(name).first;
75 if( !child.IsValid() ) {
76 ALIB_WARNING(
"RESOURCES",
"ConfigResourcePool: Resource value existed already. Name=",
82 (void) var.
Define(Priority::DefaultValues);
96 String256 path(category); path <<
'/' << name;
102 "Missing resource \"{}\" in category: \"{}\"", name, category )
#define ALIB_ASSERT_RESULT_EQUALS( func, value)
#define ALIB_WARNING(domain,...)
#define ALIB_ASSERT_ERROR(cond, domain,...)
constexpr bool IsNull() const
virtual void BootstrapBulk(const nchar *category,...) override
bool BootstrapAddOrReplace(const NString &category, const NString &name, const String &data) override
bool Define(Priority requestedPriority=Priority::Standard)
bool Try(const String &name)
strings::TString< nchar > NString
Type alias in namespace alib.
constexpr String NULL_STRING
A nulled string of the default character type.
strings::TString< character > String
Type alias in namespace alib.
characters::nchar nchar
Type alias in namespace alib.
LocalString< 256 > String256
Type alias name for #"TLocalString;TLocalString<character,256>".
characters::character character
Type alias in namespace alib.