]> Creatis software - bbtk.git/blob - kernel/src/bbtkBBPInterpreter.h
2042 Feature In Progress bbpConfigurator
[bbtk.git] / kernel / src / bbtkBBPInterpreter.h
1 /*
2 # ---------------------------------------------------------------------
3 #
4 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
5 #                        pour la Santé)
6 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
7 #
8 #  This software is governed by the CeCILL-B license under French law and
9 #  abiding by the rules of distribution of free software. You can  use,
10 #  modify and/ or redistribute the software under the terms of the CeCILL-B
11 #  license as circulated by CEA, CNRS and INRIA at the following URL
12 #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
13 #  or in the file LICENSE.txt.
14 #
15 #  As a counterpart to the access to the source code and  rights to copy,
16 #  modify and redistribute granted by the license, users are provided only
17 #  with a limited warranty  and the software's author,  the holder of the
18 #  economic rights,  and the successive licensors  have only  limited
19 #  liability.
20 #
21 #  The fact that you are presently reading this means that you have had
22 #  knowledge of the CeCILL-B license and that you accept its terms.
23 # ------------------------------------------------------------------------
24 */
25
26 /*=========================================================================
27 Program:   bbtk
28 Module:    $RCSfile$
29 Language:  C++
30 Date:      $Date$
31 Version:   $Revision$
32 =========================================================================*/
33
34
35 #ifndef __bbtkBBPInterpreter_h__
36 #define __bbtkBBPInterpreter_h__
37
38 //Includes bbtk
39 #include "bbtkInterpreterVirtual.h"
40
41 //Includes std
42 #include <iostream>
43 #include <set>
44
45
46 //#include "bbtkSystem.h"
47 //#include "bbtkComplexBlackBox.h"
48
49 namespace bbtk
50 {
51   class BBTK_EXPORT BBPInterpreter : public InterpreterVirtual
52   {
53   public:
54     static Pointer New();
55     BBPInterpreter();
56     ~BBPInterpreter();
57
58     //Public methods
59
60     virtual void commandNew( const std::string& boxType, const std::string& boxName);
61
62     virtual void commandConnection (const std::string &boxfrom,
63                        const std::string &output,
64                        const std::string &boxto,
65                        const std::string &input);
66     virtual void commandSet(const std::string &box,const std::string &input,const std::string &value);
67
68
69     virtual void commandDefine(const std::string &name,const std::string &pack,const std::string &scriptfilename);
70     virtual void commandEndDefine();
71
72     virtual void commandExec(const std::string &word);
73
74     virtual void commandAuthor(const std::string &author);
75     virtual void commandCategory(const std::string &categorytype);
76     virtual void commandDescription(const std::string &description);
77
78     virtual void commandInput(const std::string &name,const std::string &box,const std::string &input,const std::string  &help);
79     virtual void commandOutput(const std::string &name,const std::string &box,const std::string &output,const std::string  &help);
80
81     std::string boxName;
82     std::set<std::string> dependencies;
83
84   private:
85
86     //Private Attributes
87
88     //Private Methods
89
90   protected:
91
92     //Protected Attributes
93
94     //Protected methods
95
96   };
97 }
98 // namespace bbtk
99 #endif
100