template<typename T>
struct alib::resources::ResourcedType< T >
Static helper-struct used to access resources of types that dispose of a specialization of the type trait ResourcedTraits.
- See also
-
- Template Parameters
-
| T | A type equipped with resource information by a specialization of ResourcedTraits. |
Definition at line 360 of file resources.inl.
◆ Get() [1/3]
template<typename T>
template<typename TRequires = T>
Static method that receives a resource string for a type which has a specialization of ResourcedTraits defined.
- Template Parameters
-
| TRequires | Not to be specified. Used by the compiler to select the availability of this method. |
- Returns
- The externalized resource string.
Definition at line 370 of file resources.inl.
◆ Get() [2/3]
template<typename T>
template<typename TRequires = T>
Variant of the parameterless version Get that ignores the resource name given for a type with a specialization of ResourcedTraits, but instead uses the name provided.
- Template Parameters
-
| TRequires | Not to be specified. Used by the compiler to select the availability of this method. |
- Parameters
-
| 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 error is raised if the resource was not found. Use the macro ALIB_DBG with calls to this method. |
- Returns
- The externalized resource string.
◆ Get() [3/3]
template<typename T>
template<typename TRequires = T>
Variant of the method bool) that accepts a character string of standard character width instead of a narrow type.
- Availability
- Available only if ALIB_CHARACTERS_WIDE evaluates to
true.
- Template Parameters
-
| TRequires | Not to be specified. Used by the compiler to select the availability of this method. |
- Parameters
-
| resourceName | The resource name to use, given as a string of standard character width. |
| dbgAssert | This parameter is available (and to be passed) only in debug mode. If true, an error is raised if the resource was not found. |
- Returns
- The externalized resource string.
◆ TypeNamePostfix()
Same as TypeNamePrefix but for the postfix string of a types name. Consequently, extends the resource string's name searched by character '>'.
- Returns
- The postfix string.
Definition at line 467 of file resources.inl.
◆ TypeNamePrefix()
The documentation for this struct was generated from the following file: