Function sdv::core::GetObject(const std::string&)#
Defined in File local_service_access.h
Function Documentation#
-
inline TInterfaceAccessPtr sdv::core::GetObject(const std::string &rssObjectName)#
Get an object from the repository service.
- Attention
This function only work when called from modules loaded via the repository service.
- Attention
This function can only be used on controlled objects. Local object are not returned using this function.
- Parameters:
rssObjectName – [in] Reference to the name of the requested object (as defined via DECLARE_OBJECT_CLASS_NAME).
rssObjectName – [in] Reference to the name of the requested object (as defined via DECLARE_OBJECT_CLASS_NAME).
- Template Parameters:
TInterface – The type of interface to return.
- Returns:
Returns the smart interface pointer of the object instance if found or nullptr otherwise.
- Returns:
Returns the interface pointer of the object instance if found or nullptr otherwise.