ALib C++ Framework
by
Library Version: 2511 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
resources.prepro.hpp File Reference

Description:

This header-file is part of the ALib C++ Framework.

© 2013-2025 A-Worx GmbH, Germany. Published under Boost Software License.

Definition in file resources.prepro.hpp.

#include "alib/alib.inl"

Go to the source code of this file.

Macros

#define ALIB_RESOURCED(T, ResPool, ResCategory, ResName)

Macro Definition Documentation

◆ ALIB_RESOURCED

#define ALIB_RESOURCED ( T,
ResPool,
ResCategory,
ResName )
Value:
namespace alib::resources { \
template<> struct ResourcedTraits<T> : std::true_type \
{ \
static ResourcePool* Pool() { return ResPool; } \
static constexpr NString Category() { return ResCategory; } \
static constexpr NString Name() { return ResName; } \
};}
strings::TString< nchar > NString
Type alias in namespace alib.
Definition string.inl:2181

Macro used to specialize the type trait ResourcedTraits for given type T.

Parameters
TThe type to specialize the type trait ResourcedTraits for.
ResPoolExpression providing a pointer to the ResourcePool object.
ResCategoryExpression providing the resource category.
ResNameExpression providing the resource name.

Definition at line 29 of file resources.prepro.hpp.