Program: bbtk
Module: $RCSfile: bbtkInterpreter.cxx,v $ $
Language: C++
- Date: $Date: 2008/03/10 06:24:13 $
- Version: $Revision: 1.42 $
+ Date: $Date: 2008/03/11 12:27:21 $
+ Version: $Revision: 1.43 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
try
{
SwitchToFile(filename);
-
-printf("EED Interpreter::InterpretFile 0001\n" );
+ /*
+ printf("EED Interpreter::InterpretFile 0001\n" );
int ii,ssize = mFileName.size();
for (ii=0;ii<ssize;ii++)
{
- printf("EED RRR Interpreter::InterpretFile %s\n", mFileName[ii].c_str() );
+ printf("EED RRR Interpreter::InterpretFile %s\n", mFileName[ii].c_str() );
}
-
+ */
bool insideComment = false; // for multiline comment
while (mFile.size()>0)
{
-printf("EED --- %s --- Interpreter::InterpretFile \n", mFileName[0].c_str() );
+ //printf("EED --- %s --- Interpreter::InterpretFile \n", mFileName[0].c_str() );
while ((mFile.size()>0) &&
(!mFile.back()->eof()))
-//EED3 (!mFile[0]->eof()))
{
mLine.back()++;
char buf[500];
mFile.back()->getline(buf,500);
-//EED3 mFile[0]->getline(buf,500);
-
std::string str(buf);
int size=str.length();
if ( str[ size-1 ]==13 )
}
InterpretLine(str, insideComment);
-printf("EED Interpreter::InterpretFile %s\n", str.c_str() );
+ //printf("EED Interpreter::InterpretFile %s\n", str.c_str() );
}
//if (mFile.size()>0)
CloseCurrentFile();
//EED printf(" EED %d Interpreter::LoadScript %s __>>__ %s\n", iStrScript,mFileName[iStrScript].c_str(),fullPathScriptName.c_str() );
if (mFileName[iStrScript] == fullPathScriptName )
{
- printf(" EED %d Interpreter::LoadScript iguales\n",iStrScript );
+ // printf(" EED %d Interpreter::LoadScript iguales\n",iStrScript );
okScriptExist=true;
} // if
} // for