Static helper-struct used to access resources of types that dispose about a specialization of type-traits struct T_Resourced.
T | A type equipped with resource information by a specialization of T_Resourced. |
Definition at line 311 of file resources.hpp.
#include <resources.hpp>
Public Static Method Index: | |
template<typename TEnableIf = T> | |
static const String & | Get () |
template<typename TEnableIf = T> | |
static const String & | Get (const NString &name, bool dbgAssert) |
static const String & | TypeNamePostfix () |
static const String & | TypeNamePrefix () |
Static methodthat receives a resource string for a type which has a specialization of T_Resourced defined.
TEnableIf | Not to be specified. Used by the compiler to select the availability of this method. |
|
inlinestatic |
Variant of parameterless version Get that ignores the resource name given for a type with T_Resourced, but instead uses the given name.
TEnableIf | Not to be specified. Used by the compiler to select the availability of this method. |
name | The resource name to use, given as string of narrow character width. |
dbgAssert | This parameter is available (and to be passed) only in debug mode. If true , an assertion is raised if the resource was not found. |
|
inlinestatic |
Same as TypeNamePrefix but for the postfix string of a types name. Consequently, extends the resource string's name searched by character character '>'
.
Definition at line 427 of file resources.hpp.
|
inlinestatic |
Together with sibling method TypeNamePostfix, this method may be used to receive the first portion of a type's human-readable name.
The method tries to standardize resourcing names of C++ types along with the resource string that is defined with type-traits struct T_Resourced for a type.
The prefix is tried to be retrieved by extending the resource name returned by method T_Resourced::Name by character '<'
.
ALib uses this method internally, for example with specializations T_Append<TEnum,TChar,TAllocator> T_Append<TEnumBitwise,TChar,TAllocator> used to write element names of enum types.
If either T_Resourced is not specialized for TEnum, or a resource named "name>" is not found, an empty string is returned.
Definition at line 407 of file resources.hpp.