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

Contains the config for the SimComHandler, the SimToDuTInterface and the Logger. More...

#include <SystemConfig.h>

Public Member Functions

 SystemConfig ()=default
 

Static Public Member Functions

static void saveToFile (const std::string &file, SystemConfig &systemConfig)
 
static void loadFromFile (const std::string &file, SystemConfig &systemConfig, bool createNewIfNotFoundOrInvalid)
 

Public Attributes

LoggerConfig loggerConfig
 
std::string socketSimAddressSub = "tcp://localhost:7777"
 
std::string socketSimAddressPub = "tcp://*:7778"
 
std::string socketSimAddressReciverConfig = "tcp://localhost:7779"
 

Friends

class boost::serialization::access
 

Detailed Description

Contains the config for the SimComHandler, the SimToDuTInterface and the Logger.

All attributes in this class should have default values assigned.

Constructor & Destructor Documentation

◆ SystemConfig()

sim_interface::SystemConfig::SystemConfig ( )
default

Create a new system config with default values.

Member Function Documentation

◆ loadFromFile()

static void sim_interface::SystemConfig::loadFromFile ( const std::string &  file,
SystemConfig systemConfig,
bool  createNewIfNotFoundOrInvalid 
)
inlinestatic

Load the config from a File.

Parameters
fileFile path.
systemConfigReference to a system config object.
createNewIfNotFoundOrInvalidSave the default system config to the file location if the loading is unsuccessful.

◆ saveToFile()

static void sim_interface::SystemConfig::saveToFile ( const std::string &  file,
SystemConfig systemConfig 
)
inlinestatic

Save the config to a File. Does not create a new folder if it dose not exist!

Parameters
fileFile path.
systemConfigReference to a system config object.

Member Data Documentation

◆ loggerConfig

LoggerConfig sim_interface::SystemConfig::loggerConfig

Config of the logger.

◆ socketSimAddressPub

std::string sim_interface::SystemConfig::socketSimAddressPub = "tcp://*:7778"

Address of the zmq publisher.

◆ socketSimAddressReciverConfig

std::string sim_interface::SystemConfig::socketSimAddressReciverConfig = "tcp://localhost:7779"

Address of the zmq Config Reciver.

◆ socketSimAddressSub

std::string sim_interface::SystemConfig::socketSimAddressSub = "tcp://localhost:7777"

Address of the zmq subscriber.


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