wiRedPanda
Home
About
Download
Try out
API Docs
wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
SimulationHandler.h
Go to the documentation of this file.
1
// Copyright 2015 - 2026, GIBIS-UNIFESP and the wiRedPanda contributors
2
// SPDX-License-Identifier: GPL-3.0-or-later
3
4
#pragma once
5
6
#include "
MCP/Server/Handlers/BaseHandler.h
"
7
8
class
BewavedDolphin
;
9
17
class
SimulationHandler
:
public
BaseHandler
18
{
19
public
:
20
explicit
SimulationHandler
(
MainWindow
*mainWindow,
const
MCPValidator
*validator);
21
~SimulationHandler
();
22
23
QJsonObject
handleCommand
(
const
QString &command,
const
QJsonObject ¶ms,
const
QJsonValue &requestId)
override
;
24
25
private
:
26
Q_DISABLE_COPY_MOVE(
SimulationHandler
)
27
28
QJsonObject handleSimulationControl(
const
QJsonObject ¶ms,
const
QJsonValue &requestId);
29
QJsonObject handleCreateWaveform(
const
QJsonObject ¶ms,
const
QJsonValue &requestId);
30
QJsonObject handleExportWaveform(
const
QJsonObject ¶ms,
const
QJsonValue &requestId);
31
32
BewavedDolphin
*m_persistentDolphin;
33
};
BaseHandler.h
BaseHandler::BaseHandler
BaseHandler(MainWindow *mainWindow, const MCPValidator *validator)
Definition
BaseHandler.cpp:17
BewavedDolphin
Waveform editor main window for creating and analyzing digital signal sequences.
Definition
BeWavedDolphin.h:43
MCPValidator
JSON Schema validator for MCP commands and responses using native json-schema-validator.
Definition
MCPValidator.h:49
MainWindow
The top-level application window hosting the tab bar, menus, element palette, and editor.
Definition
MainWindow.h:47
SimulationHandler::~SimulationHandler
~SimulationHandler()
Definition
SimulationHandler.cpp:22
SimulationHandler::handleCommand
QJsonObject handleCommand(const QString &command, const QJsonObject ¶ms, const QJsonValue &requestId) override
Definition
SimulationHandler.cpp:30
SimulationHandler::SimulationHandler
SimulationHandler(MainWindow *mainWindow, const MCPValidator *validator)
Definition
SimulationHandler.cpp:16
MCP
Server
Handlers
SimulationHandler.h
Generated by
1.16.1