Program: bbtk
Module: $RCSfile: bbtkInterpreter.cxx,v $ $
Language: C++
- Date: $Date: 2008/04/22 06:59:31 $
- Version: $Revision: 1.61 $
+ Date: $Date: 2008/04/22 08:29:09 $
+ Version: $Revision: 1.62 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
break;
case cReset :
- this->mExecuter->Reset();
- mFileNameHistory.clear();
+ Reset();
break;
case cInclude :
//=======================================================================
-
+ //=======================================================================
+ void Interpreter::Reset()
+ {
+ // Cannot close all files if the reset command is read from a file !
+ // CloseAllFiles();
+ mFileNameHistory.clear();
+ this->mExecuter->Reset();
+ }
+ //=======================================================================
//=======================================================================
/**
*
*/
-// ===================================================================================
-
+ // =========================================================================
void Interpreter::SwitchToFile( const std::string& name )
{
// Note : in the following :
c=0;
read ( STDIN_FILENO, &c, 4) ;
- bbtkDebugMessage("Debug",9,"[0x"<<std::hex<<c<<"]\n");
+ bbtkDebugMessage("debug",9,"[0x"<<std::hex<<c<<"]\n");
// Printable character
if ( (ind<MAX_LINE_SIZE-1) &&
//==========================================================================
void Interpreter::ObjectInfo(const std::string& name)
{
- Object:: PrintObjectInfo(name);
+ if ((name.length()==2)&&(name[0]=='-'))
+ {
+ if (name[1]=='S')
+ {
+ bbtk::StaticInitTime::PrintObjectListInfo = true;
+ }
+ if (name[1]=='C')
+ {
+ // int o = MessageManager::GetMessageLevel("debug");
+ // if (o<2) MessageManager::SetMessageLevel("debug",2);
+ mExecuter->GetFactory()->CheckPackages();
+ // MessageManager::SetMessageLevel("debug",o);
+ }
+ }
+ else
+ {
+ Object:: PrintObjectListInfo(name);
+ }
}
//==========================================================================
//==========================================================================