Improved Raft event tracer - added event code to string conversion

This commit is contained in:
Pavel Kirienko
2015-05-08 17:20:02 +03:00
parent 1f7c0b40b3
commit dab32220e0
3 changed files with 73 additions and 3 deletions
@@ -76,6 +76,14 @@ public:
class IDynamicNodeIDAllocationServerEventTracer
{
public:
#if UAVCAN_TOSTRING
/**
* It is safe to call this function with any argument.
* If the event code is out of range, an assertion failure will be triggered and an error text will be returned.
*/
static const char* getEventName(uint16_t code);
#endif
/**
* The server invokes this method every time it believes that a noteworthy event has happened.
* The table of event codes can be found in the server sources.
@@ -658,7 +666,7 @@ public:
}
};
} // namespace dynamic_node_id_impl
} // namespace dynamic_node_id_server_impl
/**
*