Computer Assited Medical Intervention Tool Kit  version 4.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-2018 Univ. Grenoble Alpes, CNRS, TIMC-IMAG UMR 5525 (GMCAO)
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 
37 class SaveActionState : public ActionState {
38 
39 public:
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 
56 private:
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
QString extension
Definition: SaveActionState.h:43
QString type
Definition: SaveActionState.h:42
QString defaultSaveDirName
Definition: SaveActionState.h:57
virtual camitk::Action::ApplyStatus applyAction()
apply the action encapsulated by this action state
Definition: SaveActionState.cpp:51
QTextStream * logStream
Log stream to write report on logFile.
Definition: ActionState.h:140
QString name
Definition: SaveActionState.h:41
QString name
Name of the state action (may not be the same as the action&#39;s name)
Definition: ActionState.h:105
QVector< saveComponentsInfo > inputComponentsInfo
Definition: SaveActionState.h:65
The state (in a state machine point of view) corresponding to the current processed action...
Definition: ActionState.h:48
ApplyStatus
describes what happened during the application of an algorithm (i.e. results of the apply method) ...
Definition: Action.h:223
void setInput(QVector< saveComponentsInfo > inputComponentsInfo)
Definition: SaveActionState.cpp:47
QString description
Description of the state action may not be the same as the action&#39;s description but complementary...
Definition: ActionState.h:110
QString directory
Definition: SaveActionState.h:44
The asm application uses a state machine.
Definition: SaveActionState.h:37
Definition: SaveActionState.h:40
SaveActionState(QState *parent, QString name, QString description, QString defaultSaveDirName, QTextStream *logStream=nullptr)
Definition: SaveActionState.cpp:40