SMACC
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
smacc::introspection::SmaccEventInfo Struct Reference

#include <smacc_state_info.h>

Collaboration diagram for smacc::introspection::SmaccEventInfo:
Collaboration graph

Public Member Functions

 SmaccEventInfo (std::shared_ptr< TypeInfo > eventType)
 
std::string getEventTypeName ()
 
std::string getEventSourceName ()
 
std::string getOrthogonalName ()
 

Public Attributes

std::string label
 
std::shared_ptr< TypeInfoeventType
 

Detailed Description

Definition at line 26 of file smacc_state_info.h.

Constructor & Destructor Documentation

◆ SmaccEventInfo()

smacc::SmaccEventInfo::SmaccEventInfo ( std::shared_ptr< TypeInfo eventType)

Definition at line 69 of file smacc_state_info.cpp.

70{
71 ROS_INFO_STREAM("CREATING EVENT INFO: " << eventType->getFullName());
72
73 this->eventType = eventType;
74}
std::shared_ptr< TypeInfo > eventType

References eventType.

Member Function Documentation

◆ getEventSourceName()

std::string smacc::SmaccEventInfo::getEventSourceName ( )

Definition at line 76 of file smacc_state_info.cpp.

77{
78 if (eventType->templateParameters.size() > 0)
79 {
80 auto eventsourcename = demangleSymbol(eventType->templateParameters[0]->getFullName().c_str());
81 return eventsourcename;
82 }
83 else
84 {
85 return "";
86 }
87}
std::string demangleSymbol()
Definition: introspection.h:75

References smacc::introspection::demangleSymbol(), and eventType.

Here is the call graph for this function:

◆ getEventTypeName()

std::string smacc::SmaccEventInfo::getEventTypeName ( )

Definition at line 89 of file smacc_state_info.cpp.

90{
91 return demangleSymbol(eventType->getNonTemplatedTypeName().c_str());
92}

References smacc::introspection::demangleSymbol(), and eventType.

Here is the call graph for this function:

◆ getOrthogonalName()

std::string smacc::SmaccEventInfo::getOrthogonalName ( )

Definition at line 94 of file smacc_state_info.cpp.

95{
96 if (eventType->templateParameters.size() > 1)
97 {
98 return demangleSymbol(eventType->templateParameters[1]->getFullName().c_str());
99 }
100 else
101 {
102 return "";
103 }
104}

References smacc::introspection::demangleSymbol(), and eventType.

Here is the call graph for this function:

Member Data Documentation

◆ eventType

std::shared_ptr<TypeInfo> smacc::introspection::SmaccEventInfo::eventType

◆ label

std::string smacc::introspection::SmaccEventInfo::label

Definition at line 37 of file smacc_state_info.h.


The documentation for this struct was generated from the following files: