9 #ifndef anna_app_functions_hpp 10 #define anna_app_functions_hpp 43 template <
typename T>
static T*
componentByName(
const char *className,
const char* fromFile,
const int fromLine)
48 std::string msg(className);
49 msg +=
" | Componente no registrado";
71 template <
typename T>
static T*
component(
const char* fromFile,
const int fromLine)
73 return functions::componentByName<T> (T::getClassName(), fromFile, fromLine);
static Application & getApp() noexcept(false)
Definition: Application.hpp:35
static T * componentByName(const char *className, const char *fromFile, const int fromLine) noexcept(false)
Definition: functions.hpp:43
Component * find(const char *className)
Definition: functions.hpp:65
static T * component(const char *fromFile, const int fromLine) noexcept(false)
Definition: functions.hpp:633
Definition: functions.hpp:25
Definition: RuntimeException.hpp:23