51{
52 if (argc != 2)
53 {
54 cerr << "usage: " << argv[0] << " schema.xml" << endl;
55 return 1;
56 }
57
58 RuntimeSALOME::setRuntime();
59
62
63 try
64 {
66 std::ofstream
f(
"toto");
69
71 void **
args=
new void *[2];
72 args[0]=(
void *)executor;
75 char com;
76 cerr << "enter a char to start" << endl;
77 cin >> com;
78
80 {
82 cerr << "executorState: " << executorState << endl;
83 cerr << "command display=d step=s : ";
84 cin >> com;
85 switch (com)
86 {
87 case 's':
88 {
91 cerr << "resumeCurrentBreakPoint(): " << res << endl;
92 break;
93 }
94 case 'd':
95 {
97 break;
98 }
99 default:
100 {
101 cerr << "commande inconnue" << endl;
102 }
103 }
104 }
105 execThread->join();
106 std::ofstream g("titi");
108 g.close();
109 delete executor;
110 return 0;
111 }
113 {
115 return 1;
116 }
117 catch (const std::ios_base::failure&)
118 {
120 return 1;
121 }
122 catch(CORBA::SystemException&
ex)
123 {
125 CORBA::Any tmp;
127 CORBA::TypeCode_var tc = tmp.type();
128 const char *
p = tc->name();
130 {
131 DEBTRACE(
"Caught a CORBA::SystemException. " <<
p);
132 }
133 else
134 {
135 DEBTRACE(
"Caught a CORBA::SystemException. " << tc->id());
136 }
137 return 1;
138 }
139 catch(omniORB::fatalException& fe)
140 {
141 DEBTRACE(
"Caught omniORB::fatalException: file: "<<fe.file()<<
" line: "<<fe.line()<<
" msg: "<<fe.errmsg());
142 return 1;
143 }
144 catch(...)
145 {
146 DEBTRACE(
"Caught unknown exception.");
147 return 1;
148 }
149}
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