SMACC
Loading...
Searching...
No Matches
Classes | Functions
smacc::utils Namespace Reference

Classes

struct  Bind
 
struct  Bind< 1 >
 
struct  Bind< 2 >
 
struct  Bind< 3 >
 
struct  Bind< 4 >
 

Functions

std::string cleanShortTypeName (const std::type_info &tinfo)
 

Function Documentation

◆ cleanShortTypeName()

std::string smacc::utils::cleanShortTypeName ( const std::type_info &  tinfo)

Definition at line 14 of file common.cpp.

15{
16 auto typeinfo= TypeInfo::getFromStdTypeInfo(tinfo);
17 auto nontemplatedfullclasname = typeinfo->getNonTemplatedTypeName();
18
19
20 //ROS_INFO("State full classname: %s", fullclassname.c_str());
21
22 std::vector<std::string> strs;
23 boost::split(strs, nontemplatedfullclasname, boost::is_any_of("::"));
24 std::string classname = strs.back();
25 //ROS_INFO("State classname: %s", classname.c_str());
26
27
28 return classname;
29}

References smacc::introspection::TypeInfo::getFromStdTypeInfo().

Referenced by smacc::SmaccState< MostDerived, Context, InnerInitial, historyMode >::entryStateInternal(), smacc::SmaccState< MostDerived, Context, InnerInitial, historyMode >::getShortName(), smacc::SmaccStateMachineBase< DerivedStateMachine, InitialStateType >::initiate_impl(), smacc::SignalDetector::pollingLoop(), and smacc::SmaccState< MostDerived, Context, InnerInitial, historyMode >::SmaccState().

Here is the call graph for this function:
Here is the caller graph for this function: