HLCC Documentation 2.2.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
hlcc::trksim::PyRunner Class Reference

#include <pyRunner.hpp>

Public Member Functions

 PyRunner (const PyRunner &)=delete
 
PyRunneroperator= (const PyRunner &)=delete
 Disable copy constructor.
 
 PyRunner (const ConfigPack &config_pack)
 Disable assignment operator.
 
virtual ~PyRunner ()
 
void ReloadPythonModules ()
 
void RunPythonExecuteFunctions (int64_t iteration_timestamp_ms)
 
void RunPythonTerminateFunctions ()
 
void UpdateConfiguration (const ConfigPack &config_pack)
 
int GetNumberModulesLoaded ()
 
std::vector< ExecTimeStats::StatisticsCollectionGetExecutionStatistics ()
 

Detailed Description

This pragma will provide the needed visibility for pybind11 code The other approach whould be to use a compiler flag '-fvisibility=hidden' but it is causing problems with other parts of the program, like oldb publishing. Check the link below to read more about it: https://pybind11.readthedocs.io/en/stable/faq.html#someclass-declared-with-greater-visibility-than-the-type-of-its-field-someclass-member-wattributes

Constructor & Destructor Documentation

◆ PyRunner() [1/2]

hlcc::trksim::PyRunner::PyRunner ( const PyRunner & )
delete

◆ PyRunner() [2/2]

hlcc::trksim::PyRunner::PyRunner ( const ConfigPack & config_pack)
explicit

Disable assignment operator.

Constructor

◆ ~PyRunner()

hlcc::trksim::PyRunner::~PyRunner ( )
virtual

Destructor

Member Function Documentation

◆ GetExecutionStatistics()

std::vector< ExecTimeStats::StatisticsCollection > hlcc::trksim::PyRunner::GetExecutionStatistics ( )

Gets the statistics from the C++ and python sides for the python state variables that just terminated.

◆ GetNumberModulesLoaded()

int hlcc::trksim::PyRunner::GetNumberModulesLoaded ( )

Gets the total number of modules loaded successfully

◆ operator=()

PyRunner & hlcc::trksim::PyRunner::operator= ( const PyRunner & )
delete

Disable copy constructor.

◆ ReloadPythonModules()

void hlcc::trksim::PyRunner::ReloadPythonModules ( )

Reloads all the python modules

◆ RunPythonExecuteFunctions()

void hlcc::trksim::PyRunner::RunPythonExecuteFunctions ( int64_t iteration_timestamp_ms)

Runs the 'py_execute_method_name' from all modules

Parameters
iteration_timestamp_mstimestamp current iteration started. because we are running multiple python scripts sequentially this parameter will inform all of timestamp in milliseconds that the current iteration started. It will be needed to correctly compute the period for the SV publishing

◆ RunPythonTerminateFunctions()

void hlcc::trksim::PyRunner::RunPythonTerminateFunctions ( )

Runs the 'py_terminate_method_name' from all modules

◆ UpdateConfiguration()

void hlcc::trksim::PyRunner::UpdateConfiguration ( const ConfigPack & config_pack)

Updates the current configuration on the local configuration


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