Please, help us to better know about our user community by answering the following short survey: https://forms.gle/wpyrxWi18ox9Z5ae9
scqSimulator Class Reference

Detailed Description

The anchestor of all ScQt-based simulators The simulator manipulates scModules etc. It does NOT use a bus.

+ Inheritance diagram for scqSimulator:

Public Member Functions

virtual void readSettings (void)
 readSettings The main settings reading routine: reads settings from files More...
 
int64_t SimulationPartTime_Get (void)
 return actual benchmark duration since last reading
 

Protected Attributes

scProcessormsProcessor
 My topology, I am handling.
 
bool msStepwiseMode
 If to process stepwise.
 
bool msSuspended
 If running simulation is suspended.
 
string simulation_name
 The filename of the config files.
 

Member Function Documentation

◆ readSettings()

virtual void scqSimulator::readSettings ( void  )
virtual

readSettings The main settings reading routine: reads settings from files

<keywordgroup>.ini 

at levels Application, User, Project, in this sequence (i.e. a later setting overwrites the previous one)

The list of

<keywordgroup>.ini 

files is given as a configuration parameter, as

#define INI_FILES "MainWindow Others" 

The settings in the files are given as

<keywordgroup>/<keyword>=<value>

The assumed directory structure:

*  |InstallDir
*  |--/.config/<packagename>V<packageversion>/<keywordgroup>.ini
*
*  |WorkDir
*  |--/<packagename>V<packageversion>/<keywordgroup>.ini
*
*  |ProjectDir
*  |--/<packagename>V<packageversion>/<keywordgroup>.ini
 * 

If the expected directory, the

<keywordgroup>.ini

file, or that

<keyword>

does not exist, a warning is issued in the log file. Depending on the actual directory status, duplicated readings are possible.

The different packages may have different settings handling method


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