12 :
QThread(controller), mSimulationInput(simInput), mEngine(engine), mLogChannel(controller->get_name()), mSimulTime(0),
13 mSaleaeDirectoryFilename(controller->get_saleae_directory_filename())
18 void SimulationThread::terminateThread(
bool success,
const char* failedStep)
24 log_warning(mLogChannel,
"simulation engine error during {}.", failedStep);
36 void* registerObj = (
void*)
net;
41 if (!mEngine->
inputEvent(mSimulationInputNetEvent))
47 mSimulationInputNetEvent.clear();
56 return terminateThread(
false,
"run");
59 terminateThread(mEngine->
finalize(),
"finalize");
Value
represents the type of the node
void handleRunFinished(bool success)
The SaleaeParser class is an engine which allows to parse any number of SALEAE files into a sequence ...
bool next_event()
Call to parser to deliver next event via registered callbacks (see above).
bool register_callback(const std::string &name, uint32_t id, std::function< void(void *, uint64_t, int)> callback, void *obj)
Registers callback which gets executed upon next_event()
virtual bool inputEvent(const SimulationInputNetEvent &netEv)=0
void threadFinished(bool success)
SimulationThread(NetlistSimulatorController *controller, const SimulationInput *simInput, SimulationEngineEventDriven *engine)
#define log_warning(channel,...)
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)