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

#include <smacc_state_info.hpp>

Collaboration diagram for smacc2::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 41 of file smacc_state_info.hpp.

Constructor & Destructor Documentation

◆ SmaccEventInfo()

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

Definition at line 93 of file smacc_state_info.cpp.

93{ this->eventType = eventType; }
std::shared_ptr< TypeInfo > eventType

References eventType.

Member Function Documentation

◆ getEventSourceName()

std::string smacc2::SmaccEventInfo::getEventSourceName ( )

Definition at line 95 of file smacc_state_info.cpp.

96{
97 if (eventType->templateParameters.size() > 0)
98 {
99 auto eventsourcename = demangleSymbol(eventType->templateParameters[0]->getFullName().c_str());
100 return eventsourcename;
101 }
102 else
103 {
104 return "";
105 }
106}
std::string demangleSymbol()

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

Here is the call graph for this function:

◆ getEventTypeName()

std::string smacc2::SmaccEventInfo::getEventTypeName ( )

Definition at line 108 of file smacc_state_info.cpp.

109{
110 return demangleSymbol(eventType->getNonTemplatedTypeName().c_str());
111}

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

Here is the call graph for this function:

◆ getOrthogonalName()

std::string smacc2::SmaccEventInfo::getOrthogonalName ( )

Definition at line 113 of file smacc_state_info.cpp.

114{
115 if (eventType->templateParameters.size() > 1)
116 {
117 return demangleSymbol(eventType->templateParameters[1]->getFullName().c_str());
118 }
119 else
120 {
121 return "";
122 }
123}

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

Here is the call graph for this function:

Member Data Documentation

◆ eventType

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

◆ label

std::string smacc2::introspection::SmaccEventInfo::label

Definition at line 52 of file smacc_state_info.hpp.


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