X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkInterpreter.h;h=52ec57496f1c5131332ceefb147df20a14dfbe1e;hb=40b39757a6f9d5056bc08a59081ed19d0406837f;hp=4d81c655d54406aa42dc5ee63510e0abe9b38bfa;hpb=6990a8aeeaf98fc901ed193b95365b2eee2fb950;p=bbtk.git diff --git a/kernel/src/bbtkInterpreter.h b/kernel/src/bbtkInterpreter.h index 4d81c65..52ec574 100644 --- a/kernel/src/bbtkInterpreter.h +++ b/kernel/src/bbtkInterpreter.h @@ -3,8 +3,8 @@ Program: bbtk Module: $RCSfile: bbtkInterpreter.h,v $ $ Language: C++ - Date: $Date: 2008/01/22 16:55:04 $ - Version: $Revision: 1.2 $ + Date: $Date: 2008/01/28 15:08:53 $ + Version: $Revision: 1.4 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -36,7 +36,6 @@ namespace bbtk { - class BBTK_EXPORT Interpreter { @@ -49,6 +48,8 @@ namespace bbtk cDelete, cConnect, cExec, + cPackage, + cEndPackage, cDefine, cEndDefine, cInput, @@ -156,28 +157,27 @@ namespace bbtk void FindCommandsWithPrefix( char* buf, int n, std::vector& commands ); - + /// Sets the bool that indicates wether we are in command line context void SetCommandLine(bool v = true) { mCommandLine = v; } private: - + private: - + //================================================================== // ATTRIBUTES /// The factory // bbtk::Factory* mFactory; - /// The command executer - // bbtk::Executer* mExecuter; + /// The command executer bbtk::VirtualExec* mExecuter; - /// Vector of opened files + /// Vector of opened files std::vector mFile; - /// Vector of names of open files + /// Vector of names of open files std::vector mFileName; /// Stores the current line number in each open file @@ -188,10 +188,10 @@ namespace bbtk /// Are we in a command line context ? bool mCommandLine; - - /// The history of commands - std::deque< char* > mHistory; - + + /// The history of commands + std::deque< char* > mHistory; + bool verbose; // true -> displays the search results (for packages) }; @@ -202,7 +202,5 @@ namespace bbtk QuitException() : bbtk::Exception("","","") {} }; - - } #endif