2 # ---------------------------------------------------------------------
4 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
6 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
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.
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
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 # ------------------------------------------------------------------------
26 /*=========================================================================
32 =========================================================================*/
37 * \brief Class bbtk::BBPInterpreter
41 #include "bbtkBBPInterpreter.h"
43 #include "bbtkExecuter.h"
44 #include "bbtkMessageManager.h"
45 #include "bbtkFactory.h"
46 #include "bbtkUtilities.h"
51 //=========================================================================
52 BBPInterpreter::Pointer BBPInterpreter::New()
54 return MakePointer( new BBPInterpreter() );
56 //=========================================================================
60 //=========================================================================
61 BBPInterpreter::BBPInterpreter()
63 bbtk::InterpreterVirtual::Init();
65 //=========================================================================
68 //=========================================================================
69 BBPInterpreter::~BBPInterpreter()
72 //=========================================================================
75 //=========================================================================
76 /// Creates a new black box in current complex box
77 void BBPInterpreter::commandNew( const std::string& boxType, const std::string& boxName) // virtual
79 this->dependencies.insert(boxType);
81 //=========================================================================
84 //=========================================================================
85 /// Connects the output boxOutput to the input boxInput
86 void BBPInterpreter::commandConnection (const std::string &boxfrom,
87 const std::string &output,
88 const std::string &boxto,
89 const std::string &input) // virtual
92 //=========================================================================
94 //=========================================================================
95 void BBPInterpreter::commandInput(const std::string &name,const std::string &box,const std::string &input,const std::string &help)
98 //=========================================================================
100 //=========================================================================
101 void BBPInterpreter::commandOutput(const std::string &name,const std::string &box,const std::string &output,const std::string &help)
104 //=========================================================================
107 //=========================================================================
108 /// sets the input of the box with the value
109 void BBPInterpreter::commandSet(const std::string &box,const std::string &input,const std::string &value) // virtual
112 //=========================================================================
115 //=========================================================================
116 void BBPInterpreter::commandDefine(const std::string &name,const std::string &pack,const std::string &scriptfilename) // virtual
118 this->boxName = name;
120 //=========================================================================
123 //=========================================================================
124 void BBPInterpreter::commandEndDefine() // virtual
127 //=========================================================================
130 //=========================================================================
131 void BBPInterpreter::commandExec(const std::string &word) // virtual
134 //=========================================================================
137 //=========================================================================
138 void BBPInterpreter::commandAuthor(const std::string &author) // virtual
141 //=========================================================================
143 //=========================================================================
144 void BBPInterpreter::commandCategory(const std::string &categorytype) // virtual
147 //=========================================================================
149 //=========================================================================
150 void BBPInterpreter::commandDescription(const std::string &description) // virtual
153 //=========================================================================
155 } // EO namespace bbtk