#include "RuntimeSALOME.hxx"
#include "Proc.hxx"
#include "Exception.hxx"
#include "Executor.hxx"
#include "parsers.hxx"
#include "Thread.hxx"
#include <iostream>
#include <fstream>
#include "YacsTrace.hxx"
Go to the source code of this file.
◆ executorFunc()
| void* executorFunc |
( |
void * |
arg | ) |
|
Definition at line 40 of file debugger.cxx.
42 void **argT=(
void **)arg;
45 myExec->
RunB(myProc, 2);
void RunB(Scheduler *graph, int debug=0, bool fromScratch=true)
Execute a graph with breakpoints or step by step.
Base class for all schema objects.
References YACS::ENGINE::Executor::RunB().
Referenced by main().
◆ main()
| int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 50 of file debugger.cxx.
54 cerr <<
"usage: " << argv[0] <<
" schema.xml" << endl;
58 RuntimeSALOME::setRuntime();
66 std::ofstream
f(
"toto");
71 void **
args=
new void *[2];
72 args[0]=(
void *)executor;
76 cerr <<
"enter a char to start" << endl;
82 cerr <<
"executorState: " << executorState << endl;
83 cerr <<
"command display=d step=s : ";
91 cerr <<
"resumeCurrentBreakPoint(): " << res << endl;
101 cerr <<
"commande inconnue" << endl;
106 std::ofstream g(
"titi");
117 catch (
const std::ios_base::failure&)
122 catch(CORBA::SystemException&
ex)
127 CORBA::TypeCode_var tc = tmp.type();
128 const char *
p = tc->name();
131 DEBTRACE(
"Caught a CORBA::SystemException. " <<
p);
135 DEBTRACE(
"Caught a CORBA::SystemException. " << tc->id());
139 catch(omniORB::fatalException& fe)
141 DEBTRACE(
"Caught omniORB::fatalException: file: "<<fe.file()<<
" line: "<<fe.line()<<
" msg: "<<fe.errmsg());
146 DEBTRACE(
"Caught unknown exception.");
void displayDot(Scheduler *graph)
Display the graph state as a dot display, public method.
void setExecMode(YACS::ExecutionMode mode)
Dynamically set the current mode of execution.
bool resumeCurrentBreakPoint()
wake up executor when in pause
YACS::ExecutorState getExecutorState()
virtual void writeDot(std::ostream &os) const
Dump to the input stream a dot representation of the node.
const char * what(void) const noexcept
void * executorFunc(void *arg)
YACS::YACSLoader::YACSLoader * loader
References driver_internal::args, DEBTRACE, YACS::ENGINE::Executor::displayDot(), testCppPluginInvokation::ex, executorFunc(), gui.CONNECTOR::f(), YACS::ENGINE::Executor::getExecutorState(), YACS::ENGINE::Executor::isNotFinished(), loader, p, YACS::ENGINE::Executor::resumeCurrentBreakPoint(), YACS::ENGINE::Executor::setExecMode(), YACS::STEPBYSTEP, YACS::Exception::what(), and YACS::ENGINE::Proc::writeDot().