]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkInterpreter.cxx
*** empty log message ***
[bbtk.git] / kernel / src / bbtkInterpreter.cxx
index d0906a67bcdfb3a68e3759887379851b03b7240d..09954ef4fe723b386243bcfb143ffb6a9b9a7211 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkInterpreter.cxx,v $ $
   Language:  C++
-  Date:      $Date: 2008/02/05 08:25:22 $
-  Version:   $Revision: 1.20 $
+  Date:      $Date: 2008/02/05 11:39:32 $
+  Version:   $Revision: 1.23 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -167,8 +167,8 @@ Interpreter* Interpreter::mGlobalInterpreter = NULL;
     info.argmin = 0;
     info.argmax = 2;
     info.code = cIndex;
-    info.syntax = "index [<filename> ['Initials'(default)|'Packages'|'Keywords']]";
-    info.help = "Creates an html index of known boxes. If filename is provided then save it to the file 'filename'. The default index entries are the initial letters of the names of the boxes. If 'Packages' or 'Keywords' is provided then the entries are either the package names or the keywords";
+    info.syntax = "index [<filename> ['Initials'(default)|'Packages'|'Categories']]";
+    info.help = "Creates an html index of known boxes. If filename is provided then save it to the file 'filename'. The default index entries are the initial letters of the names of the boxes. If 'Packages' or 'Categories' is provided then the entries are either the packages names or the categories";
     mCommandDict[info.keyword] = info;
 
     info.keyword = "reset";  //EED
@@ -216,9 +216,8 @@ Interpreter* Interpreter::mGlobalInterpreter = NULL;
     info.argmin = 0;
     info.argmax = 2;
     info.code = cMessage;
-    info.syntax = "message <category> <level>";
-    info.help = "Sets the level of the category of messages <category> to <level>.\n  If category='All' then sets the level for all categories. If no category nor level is passed then prints info on available categories of messages and their current level.";
-    mCommandDict[info.keyword] = info;
+    info.syntax = "message <kind> <level>";
+    info.help = "Sets the level of the kind of messages <kind> to <level>.\n  If kind='All' then sets the level for all kinds. If no kind nor level is passed then prints info on available kinds of messages and their current level.";  mCommandDict[info.keyword] = info;
 
     info.keyword = "include";
     info.argmin = 1;
@@ -898,12 +897,12 @@ void Interpreter::SplitLine ( const std::string& str, std::vector<std::string>&
         // The following is *NOT* a debug time message :
         // It's a user intended message.
         // Please don't remove it.
-         bbtkMessage("Interpreter",1,
+         bbtkMessage("Interpreter",2,
                      "   [" <<fullPathScriptName <<"] : doesn't exist" 
                      <<std::endl);
           continue;  // try next path
         }
-       bbtkMessage("Interpreter",1,
+       bbtkMessage("Interpreter",2,
                    "   [" <<fullPathScriptName 
                    <<"] : found" <<std::endl);        
         foundFile = true;
@@ -937,14 +936,11 @@ void Interpreter::SplitLine ( const std::string& str, std::vector<std::string>&
     if (find(mFileName.begin(),mFileName.end(),fullPathScriptName)
        !=mFileName.end()) 
       {
-       bbtkMessage("Interpreter",1,
-                   "file '"<<fullPathScriptName
-                   <<"' already open : do not open it once more to prevent recursive inclusion"<<std::endl);
+       bbtkMessage("Interpreter",1,"file '"<<fullPathScriptName
+                   <<"' already open : I do not open it once more to prevent recursive inclusion"<<std::endl);
        return;
       }
 
-    bbtkMessage("Interpreter",1,fullPathScriptName<<" found"<<std::endl);
-
     std::ifstream* s;      
     s = new std::ifstream;
     s->open(fullPathScriptName.c_str());
@@ -1558,7 +1554,7 @@ void  Interpreter::Index(const std::string& filename,
 {
   Factory::IndexEntryType t;
   if (type=="Initials") t = Factory::Initials;
-  else if (type=="Keywords") t = Factory::Keywords;
+  else if (type=="Categories") t = Factory::Categories;
   else if (type=="Packages") t = Factory::Packages;
   
   GetGlobalFactory()->CreateHtmlIndex(t,filename);