Computer Assisted Medical Intervention Tool Kit  version 5.1
SaveActionState.h
Go to the documentation of this file.
1/*****************************************************************************
2 * $CAMITK_LICENCE_BEGIN$
3 *
4 * CamiTK - Computer Assisted Medical Intervention ToolKit
5 * (c) 2001-2023 Univ. Grenoble Alpes, CNRS, Grenoble INP, TIMC, 38000 Grenoble, France
6 *
7 * Visit http://camitk.imag.fr for more information
8 *
9 * This file is part of CamiTK.
10 *
11 * CamiTK is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * CamiTK is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details.
19 *
20 * You should have received a copy of the GNU Lesser General Public License
21 * version 3 along with CamiTK. If not, see <http://www.gnu.org/licenses/>.
22 *
23 * $CAMITK_LICENCE_END$
24 ****************************************************************************/
25#ifndef SAVEACTIONSTATE_H
26#define SAVEACTIONSTATE_H
27
28#include "ActionState.h"
29
38
39public:
40 typedef struct {
41 QString name;
42 QString type;
43 QString extension;
44 QString directory;
46
49 SaveActionState(QState* parent, QString name, QString description,
50 QString defaultSaveDirName, QTextStream* logStream = nullptr);
51
52 void setInput(QVector<saveComponentsInfo> inputComponentsInfo);
53
55
56private:
57 QString defaultSaveDirName;
58
59 /* Input components
60 * - names
61 * - types
62 * - saving extension
63 * - saving directories
64 */
65 QVector<saveComponentsInfo> inputComponentsInfo;
66
67};
68#endif // SAVEACTIONSTATE_H
The state (in a state machine point of view) corresponding to the current processed action.
Definition: ActionState.h:48
QString name
Name of the state action (may not be the same as the action's name)
Definition: ActionState.h:105
QTextStream * logStream
Log stream to write report on logFile.
Definition: ActionState.h:140
QString description
Description of the state action may not be the same as the action's description but complementary.
Definition: ActionState.h:110
The asm application uses a state machine.
Definition: SaveActionState.h:37
virtual camitk::Action::ApplyStatus applyAction()
apply the action encapsulated by this action state
Definition: SaveActionState.cpp:51
SaveActionState(QState *parent, QString name, QString description, QString defaultSaveDirName, QTextStream *logStream=nullptr)
Definition: SaveActionState.cpp:40
void setInput(QVector< saveComponentsInfo > inputComponentsInfo)
Definition: SaveActionState.cpp:47
ApplyStatus
describes what happened during the application of an algorithm (i.e. results of the apply method)
Definition: Action.h:224
Definition: SaveActionState.h:40
QString directory
Definition: SaveActionState.h:44
QString type
Definition: SaveActionState.h:42
QString extension
Definition: SaveActionState.h:43
QString name
Definition: SaveActionState.h:41