1
0
forked from fsfw/fsfw

documentation for object manager IF get function

This commit is contained in:
2019-10-23 00:31:45 +02:00
parent cd1b26b04c
commit 07950b0c2b
2 changed files with 11 additions and 3 deletions

View File

@ -78,6 +78,13 @@ public:
virtual void printList() = 0;
};
/**
* Used to retrieve Target Interface Pointers of objects.
* The object has to implement the SystemObject or SystemObjectIF at the very least,
* otherwise NULL will be returned.
* @param id
* @return NULL or pointer to target interface specified by template object
*/
template <typename T>
T* ObjectManagerIF::get( object_id_t id ) {
SystemObjectIF* temp = this->getSystemObject(id);