1 #include "bbstdExecBbiCommand.h"
2 #include "bbstdPackage.h"
3 #include "bbtkInterpreter.h"
8 BBTK_ADD_BLACK_BOX_TO_PACKAGE(std,ExecBbiCommand);
9 BBTK_USER_BLACK_BOX_IMPLEMENTATION(ExecBbiCommand,bbtk::AtomicBlackBox);
11 void ExecBbiCommand::bbUserConstructor()
17 void ExecBbiCommand::DoProcess()
23 pos2 = bbGetInputIn().find(";",pos1);
30 ccommand=bbGetInputIn().substr(pos1,bbGetInputIn().length()-pos1 );
32 ccommand=bbGetInputIn().substr(pos1,pos2-pos1);
34 for ( i=0 ; i < ccommand.length() ; i++)
41 bool insideComment = false; // for multiline comment
42 bbtk::Interpreter::mGlobalInterpreter->InterpretLine( ccommand, insideComment);
44 pos2 = bbGetInputIn().find(";",pos2+1);
50 /* Grrr not works in windows
52 pch = strtok (bbGetInputIn(),";");
55 std::string ccommand(pch);
56 printf("EED ExecBbiCommand::DoProcess 1.1 %s\n",ccommand.c_str());
57 for ( i=0 ; i < ccommand.length() ; i++)
65 printf("EED ExecBbiCommand::DoProcess 2 %s\n",ccommand.c_str());
66 bbtk::Interpreter::mGlobalInterpreter->InterpretLine( ccommand );
67 pch = strtok (NULL, ";");
73 } // EO namespace bbstd