ALib C++ Framework
by
Library Version: 2511 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
resources_debug.inl
Go to the documentation of this file.
1//==================================================================================================
2/// \file
3/// This header-file contributes to module \alib_resources but for technical reasons is part of
4/// the module \alib_format.
5///
6/// \emoji :copyright: 2013-2025 A-Worx GmbH, Germany.
7/// Published under #"mainpage_license".
8//==================================================================================================
9#if ALIB_DEBUG_RESOURCES
11
12//==================================================================================================
13/// Writes the list of resources obtainable with #"ResourcePool::DbgGetList;*" to an
14/// \b %AString.
15///
16/// \par Availability
17/// This function is an extension, which is injected by the higher-level module \alib_format and
18/// is accessed through the header file #"F;ALib.Format.H".
19/// Furthermore, the configuration macro #"ALIB_DEBUG_RESOURCES" has to be set.
20///
21/// \see
22/// Methods #"ResourcePool::DbgGetList;*" and
23/// #"ResourcePool::DbgGetCategories;*".
24///
25/// @param list The list of resources, obtained with \b DbgGetList.
26/// @param catFilter Comma-separated list of names of categories to print.
27/// Defaults to nulled string, which includes all caegories.
28/// @param format The format of a line.
29/// Defaults to <b>"({3:}) {1}={2!TAB20!ESC<!Q}\\n"</b>.
30/// @return The dump of all resources.
31//==================================================================================================
33AString DbgDump( std::vector<std::tuple<NString, NString, String, integer>>& list,
34 const NString& catFilter = nullptr,
35 const String& format = A_CHAR("({3:}) {1}={2!TAB20!ESC<!Q}\n") );
36
37#include "ALib.Lang.CIMethods.H"
38} // namespace [alib::enumrecords::bootstrap]
39
40#endif // ALIB_DEBUG_RESOURCES
#define ALIB_DLL
Definition alib.inl:573
#define A_CHAR(STR)
Definition alib.inl:1325
#define ALIB_EXPORT
Definition alib.inl:562
AString DbgDump(std::vector< std::tuple< NString, NString, String, integer > > &list, const NString &catFilter, const String &format)
strings::TString< nchar > NString
Type alias in namespace alib.
Definition string.inl:2181
strings::TString< character > String
Type alias in namespace alib.
Definition string.inl:2172
strings::TAString< character, lang::HeapAllocator > AString
Type alias in namespace alib.