Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
QHyodaJob.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2022 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7#ifndef Q_HYODA_JOB_H
8#define Q_HYODA_JOB_H
9
10#include <QtWidgets>
11#include <QStringList>
12
13#include "QHyodaGdb.h"
14#include "ui_hyodaJob.h"
15
16class QHyodaTcp;
17class QHyodaTool;
18class QHyodaProcess;
19class QHyodaMachine;
20class QHyodaStateMachine;
21class QHyodaSsh;
22
23
24/******************************************************************************
25 * Structure partagée par gdb
26 *****************************************************************************/
28 quint64 global_iteration;
29 double global_time;
30 double global_deltat;
31 double global_cpu_time;
32 quint64 mesh_total_nb_cell;
33 quint64 target_cell_uid;
34 quint64 target_cell_rank;
35 double coords[8][3];
36};
37
41class QHyodaJob:public QWidget, public Ui::jobWidget {
42 Q_OBJECT
43public:
44 QHyodaJob(QHyodaMachine*,int,char**);
45 ~QHyodaJob();
46public:
47 void refresh_common_variables(const QStringList&);
48public:
49 void gdbserver_hook();
50 void gdb_hook();
51 void detach();
52 void quit();
53public slots:
54 void gdbserver_slot();
55public slots: // Toolbar buttons
56 void stop_slot();
57 void step_slot();
58 void tack_slot();
59 void start_slot();
60 void log_slot();
61 void src_slot();
62 void cell_slot();
63 void mesh_slot();
64 void papi_slot();
65 void matrix_slot();
66public:
67 QHyodaMachine *machine;
68 int argc;
69 char **argv;
70 uint id;
71 bool has_been_broadcasted;
72 quint32 tcpAdrs;
73 quint32 tcpPort;
74 quint32 tcpPyld;
75 quint32 iceWidthHeight;
76 QHyodaGdb *gdb;
77 QProcess *gdbserver;
78 QString pid;
79 QString cmd;
80 QString cmdline;
81 QString host;
82 QString broadcasted_cmdline;
83 int tack_toggle;
84 int fdm = 0;
85 int fds = 0;
86 // La structure partagée
87 struct hyoda_taxi_data *data;
88 QHyodaTcp *tcp;
89 QStringList *arcane_variables_names;
90};
91
92#endif
void quit()
Definition QHyodaJob.cc:258
void detach()
Definition QHyodaJob.cc:248