ALib C++ Library
by
Library Version:
2511 R0
Documentation generated by
Loading...
Searching...
No Matches
A-Worx
ALib
src
alib
camp
loadtokens.inl
Go to the documentation of this file.
1
//==================================================================================================
2
/// \file
3
/// This header-file is part of module \alib_strings of the \aliblong.
4
///
5
/// \emoji :copyright: 2013-2025 A-Worx GmbH, Germany.
6
/// Published under \ref mainpage_license "Boost Software License".
7
//==================================================================================================
8
ALIB_EXPORT
namespace
alib::strings::util
{
9
10
#if DOXYGEN
11
//==================================================================================================
12
/// Shortcut to the sibling function \alib{strings::util;LoadResourcedTokens} that accepts a module
13
/// and uses its resource pool and resource category.
14
///
15
/// @param module The \alibcamp to load the resource from.
16
/// @param resourceName The resource name.
17
/// @param target The table to fill.
18
/// @param dbgSizeVerifier This parameter has to be specified only in debug comilations and
19
/// provides the expected size of the resourced table.
20
/// To be surrounded by macro #ALIB_DBG (not to be given in
21
/// release-builds.)
22
/// @param outerSeparator The character that separates the entries.
23
/// Defaults to <c>','</c>.
24
/// @param innerSeparator The character that separates the values of an entry.
25
/// Defaults to <c>' '</c> (space).
26
///
27
/// \par Module Dependencies
28
/// This method is only available if module \alib_camp is included in the \alibbuild.
29
//==================================================================================================
30
inline
31
void
LoadResourcedTokens
(
camp::Camp
& module,
32
const
NString
& resourceName,
33
strings::util::Token
* target,
34
int
dbgSizeVerifier,
35
character
outerSeparator =
','
,
36
character
innerSeparator =
' '
);
37
#else
38
inline
39
void
LoadResourcedTokens
(
camp::Camp
& module,
40
const
NString
& resourceName,
41
strings::util::Token
* target,
42
ALIB_DBG
(
int
dbgSizeVerifier, )
43
character
outerSeparator =
','
,
44
character
innerSeparator =
' '
)
45
{
46
LoadResourcedTokens
( *module.
GetResourcePool
(), module.
ResourceCategory
, resourceName,
47
target,
ALIB_DBG
(dbgSizeVerifier,) outerSeparator, innerSeparator );
48
}
49
#endif
// DOXYGEN
50
51
}
// namespace [alib::strings::util]
alib::camp::Camp
Definition
camp.inl:81
alib::camp::Camp::ResourceCategory
NCString ResourceCategory
Definition
camp.inl:113
alib::camp::Camp::GetResourcePool
SPResourcePool & GetResourcePool()
Definition
camp.inl:238
alib::strings::util::Token
Definition
token.inl:131
ALIB_EXPORT
#define ALIB_EXPORT
Definition
alib.inl:497
ALIB_DBG
#define ALIB_DBG(...)
Definition
alib.inl:853
alib::strings::util
Definition
ALib.Strings.Vector.H:21
alib::strings::util::LoadResourcedTokens
void LoadResourcedTokens(camp::Camp &module, const NString &resourceName, strings::util::Token *target, int dbgSizeVerifier, character outerSeparator=',', character innerSeparator=' ')
alib::NString
strings::TString< nchar > NString
Type alias in namespace alib.
Definition
string.inl:2198
alib::character
characters::character character
Type alias in namespace alib.
Definition
chartypes.inl:144