GDTR find() overload for name only

This commit is contained in:
Pavel Kirienko
2015-03-16 20:18:36 +03:00
parent 670e8bda51
commit 14c176015a
3 changed files with 22 additions and 0 deletions
@@ -126,6 +126,15 @@ public:
/**
* Finds data type descriptor by full data type name, e.g. "uavcan.protocol.NodeStatus".
* Messages are searched first, then services.
* Returns null pointer if the data type with this name is not registered.
* @param name Full data type name
* @return Descriptor for this data type or null pointer if not found
*/
const DataTypeDescriptor* find(const char* name) const;
/**
* Finds data type descriptor by full data type name, e.g. "uavcan.protocol.NodeStatus", and data type kind.
* Returns null pointer if the data type with this name is not registered.
* @param kind Data Type Kind - message or service
* @param name Full data type name