INFM HIL Interface
Interface between Artery simulation and DuTs
Public Member Functions | Public Attributes | Friends | List of all members
sim_interface::SimEvent Class Reference

Event object used to communicate between simulation and DuTs. More...

#include <SimEvent.h>

Public Member Functions

 SimEvent ()
 
 SimEvent (std::string operation, boost::variant< int, double, std::string > value, std::string origin)
 

Public Attributes

std::string operation
 
boost::variant< int, double, std::string > value
 
std::string current
 
std::string origin
 

Friends

std::ostream & operator<< (std::ostream &os, const SimEvent &simEvent)
 

Detailed Description

Event object used to communicate between simulation and DuTs.

Constructor & Destructor Documentation

◆ SimEvent() [1/2]

sim_interface::SimEvent::SimEvent ( )

Create a new event.

◆ SimEvent() [2/2]

sim_interface::SimEvent::SimEvent ( std::string  operation,
boost::variant< int, double, std::string >  value,
std::string  origin 
)

Create a new event.

Parameters
operationThe operation of the event. Used by the DuTConnectors to determent if the event is for the corresponding DuT.
valueThe value of the event.
originThe origin of the event.

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const SimEvent simEvent 
)
friend

Returns a string representation of the event.

Parameters
os
simEvent
Returns

Member Data Documentation

◆ current

std::string sim_interface::SimEvent::current

Time when the event was created.

◆ operation

std::string sim_interface::SimEvent::operation

Operation of the event.

◆ origin

std::string sim_interface::SimEvent::origin

Origin of the event.

◆ value

boost::variant<int, double, std::string> sim_interface::SimEvent::value

Value of the event.


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