95 T *
get(
const String &name,
size_t index) {
T * get(const String &name, size_t index)
Retrieves a registered object by name and index with type casting.
Definition ObjectRegister.h:95
bool link(const String &name, RecordPtr link, uint32_t id=FOURCC(____))
Links an object to a name in the register.
Definition ObjectRegister.h:77
virtual ~ObjectRegister()
Virtual destructor.
Definition ObjectRegister.h:56
void operator=(ObjectRegister const &)=delete
Deleted assignment operator to prevent copying.
ObjectRegister()
Default constructor.
Definition ObjectRegister.h:51
ObjectRegister(ObjectRegister const &)=delete
Deleted copy constructor to prevent copying.
Definition ObjectRegisterRecord.h:40
static bool exists(ObjectRegisterRecord *record)
Checks if a record still exists in the registry.
Definition ObjectRegisterRecord.h:84
bool addToRegister(const String &name, const Pair< uint32_t, RecordPtr > &value)
Definition Register.h:130
bool setRegisterValue(const String &name, size_t idx, const Pair< uint32_t, RecordPtr > &value)
Definition Register.h:176
Register(Register const &)=delete
bool getRegisterValue(const String &name, size_t idx, Pair< uint32_t, RecordPtr > &outValue) const
Definition Register.h:155
static T * safeStaticCast(IWithType *obj)
Safely cast a pointer to type T if the runtime type matches.
Definition TypeId.h:99
auto MakePair(Args &&...args) -> decltype(std::make_pair(std::forward< Args >(args)...))
Creates a pair instance, alias for std::make_pair.
Definition Common.h:184
std::pair< T_First, T_Second > Pair
Type alias for std::pair with cleaner syntax.
Definition Common.h:169
#define FOURCC(name)
Creates a FourCC constant from a string literal.
Definition Common.h:107
#define UNIOT_LOG_DEBUG(...)
Log an DEBUG level message Used for general information about system operation. Only compiled if UNIO...
Definition Logger.h:293
ObjectRegisterRecord * RecordPtr
Type alias for ObjectRegisterRecord pointers for better readability.
Definition ObjectRegister.h:33
Contains all classes and functions related to the Uniot Core.