#include "yacsconfig.h"
#include "RuntimeSALOME.hxx"
#include "Proc.hxx"
#include "Logger.hxx"
#include "Exception.hxx"
#include "Executor.hxx"
#include "parsers.hxx"
#include "VisitorSalomeSaveState.hxx"
#include "VisitorSaveSalomeSchema.hxx"
#include "LoadState.hxx"
#include "Dispatcher.hxx"
#include "LinkInfo.hxx"
#include <iostream>
#include <fstream>
#include <signal.h>
#include <list>
#include <argp.h>
#include <dlfcn.h>
#include <stdlib.h>
Go to the source code of this file.
Classes | |
struct | arguments |
struct | thread_st |
Typedefs | |
typedef void(* | sighandler_t )(int) |
Functions | |
void | LoadObserversPluginIfAny (YACS::ENGINE::ComposedNode *rootNode, YACS::ENGINE::Executor *executor) |
void | UnLoadObserversPluginIfAny () |
static error_t | parse_opt (int key, char *arg, struct argp_state *state) |
void | timer (std::string msg) |
void | Handler (int theSigId) |
void * | dumpState (void *arg) |
sighandler_t | setsig (int sig, sighandler_t handler) |
bool | parse_init_port (const std::string &input, std::string &node, std::string &port, std::string &value) |
int | main (int argc, char *argv[]) |
Variables | |
const char * | argp_program_version ="driver V0.1" |
const char * | argp_program_bug_address ="<nepal@nepal.edf.fr>" |
static char | doc [] ="driver -- a SALOME YACS graph executor" |
static char | args_doc [] = "graph.xml" |
static struct argp_option | options [] |
std::string | LoadedDriverPluginLibrary |
void * | HandleOnLoadedPlugin =0 |
void(* | DefineCustomObservers )(YACS::ENGINE::Dispatcher *, YACS::ENGINE::ComposedNode *, YACS::ENGINE::Executor *)=0 |
void(* | CleanUpObservers )()=0 |
static struct argp | argp = { options, parse_opt, args_doc, doc } |
Proc * | p =0 |
static struct arguments | myArgs |
typedef void(* sighandler_t)(int) |
Definition at line 324 of file driver.cxx.
void* dumpState | ( | void * | arg | ) |
Definition at line 299 of file driver.cxx.
References YACS::ENGINE::Proc::accept(), YACS::DISABLED, YACS::DONE, thread_st::dumpFile, YACS::ERROR, YACS::EXECFAILED, YACS::FAILED, YACS::ENGINE::Node::getEffectiveState(), YACS::INTERNALERR, YACS::LOADFAILED, thread_st::lockFile, thread_st::nbsec, p, and CORBAEngineTest::state.
Referenced by main().
void Handler | ( | int | theSigId | ) |
Definition at line 266 of file driver.cxx.
References YACS::ENGINE::Proc::accept(), YACS::ENGINE::ComposedNode::cleanNodes(), YACS::ENGINE::VisitorSaveState::closeFileDump(), arguments::finalDump, arguments::killPort, myArgs, YACS::ENGINE::VisitorSaveState::openFileDump(), p, YACS::ENGINE::ComposedNode::shutdown(), and arguments::shutdown.
Referenced by main().
void LoadObserversPluginIfAny | ( | YACS::ENGINE::ComposedNode * | rootNode, |
YACS::ENGINE::Executor * | executor | ||
) |
Definition at line 114 of file driver.cxx.
References CleanUpObservers, DefineCustomObservers, YACS::ENGINE::Dispatcher::getDispatcher(), and HandleOnLoadedPlugin.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 352 of file driver.cxx.
References YACS::ENGINE::Proc::accept(), YACS::ENGINE::Runtime::addCatalog(), YACS::ENGINE::LinkInfo::ALL_DONT_STOP, YACS::ENGINE::LinkInfo::areWarningsOrErrors(), argp, arguments::args, YACS::ENGINE::ComposedNode::checkConsistency(), YACS::ENGINE::VisitorSaveState::closeFileDump(), YACS::ENGINE::VisitorSaveSchema::closeFileSchema(), arguments::display, YACS::DONE, arguments::dump, arguments::dumpErrorFile, thread_st::dumpFile, dumpState(), YACS::ENGINE::Bloc::exUpdateState(), gui.CONNECTOR::f(), arguments::finalDump, YACS::ENGINE::Runtime::fini(), YACS::ENGINE::Dispatcher::getDispatcher(), YACS::ENGINE::Node::getEffectiveState(), YACS::ENGINE::ComposedNode::getErrorReport(), YACS::ENGINE::LinkInfo::getGlobalRepr(), YACS::ENGINE::Proc::getLogger(), YACS::ENGINE::RuntimeSALOME::getOrb(), YACS::ENGINE::getRuntime(), YACS::ENGINE::getSALOMERuntime(), YACS::ENGINE::Node::getStateName(), YACS::ENGINE::Logger::getStr(), Handler(), YACS::ENGINE::Logger::hasErrors(), YACS::ENGINE::Bloc::init(), arguments::init_ports, YACS::ENGINE::Logger::isEmpty(), YACS::ENGINE::Node::isValid(), arguments::killPort, YACS::YACSLoader::load(), YACS::ENGINE::Runtime::loadCatalog(), loader, LoadObserversPluginIfAny(), arguments::loadState, thread_st::lockFile, myArgs, thread_st::nbsec, YACS::ENGINE::VisitorSaveState::openFileDump(), YACS::ENGINE::VisitorSaveSchema::openFileSchema(), orb, p, YACS::ENGINE::stateLoader::parse(), parse_init_port(), arguments::reset, YACS::ENGINE::ComposedNode::resetState(), YACS::ENGINE::Executor::RunW(), YACS::ENGINE::Proc::setInPortValue(), YACS::ENGINE::RuntimeSALOME::setRuntime(), setsig(), YACS::ENGINE::Executor::setStopOnError(), YACS::ENGINE::ComposedNode::shutdown(), arguments::shutdown, arguments::stop, timer(), UnLoadObserversPluginIfAny(), YACS::ENGINE::RuntimeSALOME::UseCorba, YACS::ENGINE::RuntimeSALOME::UsePython, YACS::ENGINE::RuntimeSALOME::UseSalome, YACS::ENGINE::RuntimeSALOME::UseXml, arguments::verbose, YACS::Exception::what(), YACS::ENGINE::Proc::writeDot(), and arguments::xmlSchema.
bool parse_init_port | ( | const std::string & | input, |
std::string & | node, | ||
std::string & | port, | ||
std::string & | value | ||
) |
|
static |
Definition at line 165 of file driver.cxx.
References arguments::args, arguments::display, arguments::dump, arguments::dumpErrorFile, arguments::finalDump, arguments::init_ports, arguments::killPort, arguments::loadState, myArgs, arguments::reset, arguments::shutdown, arguments::stop, arguments::verbose, and arguments::xmlSchema.
sighandler_t setsig | ( | int | sig, |
sighandler_t | handler | ||
) |
Definition at line 325 of file driver.cxx.
Referenced by main().
void timer | ( | std::string | msg | ) |
void UnLoadObserversPluginIfAny | ( | ) |
Definition at line 149 of file driver.cxx.
References CleanUpObservers, and HandleOnLoadedPlugin.
Referenced by main().
Definition at line 247 of file driver.cxx.
Referenced by main().
const char* argp_program_bug_address ="<nepal@nepal.edf.fr>" |
Definition at line 57 of file driver.cxx.
const char* argp_program_version ="driver V0.1" |
Definition at line 56 of file driver.cxx.
|
static |
Definition at line 59 of file driver.cxx.
void(* CleanUpObservers)()=0 |
Definition at line 112 of file driver.cxx.
Referenced by LoadObserversPluginIfAny(), and UnLoadObserversPluginIfAny().
void(* DefineCustomObservers)(YACS::ENGINE::Dispatcher *, YACS::ENGINE::ComposedNode *, YACS::ENGINE::Executor *)=0 |
Definition at line 111 of file driver.cxx.
Referenced by LoadObserversPluginIfAny().
|
static |
Definition at line 58 of file driver.cxx.
Referenced by YACS::ENGINE::convertToYacsSequence< XMLImpl, xmlDocPtr, xmlNodePtr, IMPLOUT, TOUT >::convert(), YACS::ENGINE::convertToYacsStruct< XMLImpl, xmlDocPtr, xmlNodePtr, IMPLOUT, TOUT >::convert(), YACS::ENGINE::convertXmlCorba(), YACS::ENGINE::convertXmlNeutral(), YACS::ENGINE::convertXmlPyObject(), YACS::ENGINE::convertXmlStrPyObject(), YACS::ENGINE::XmlNode::execute(), YACS::ENGINE::XmlNeutral::put(), YACS::ENGINE::XmlPython::put(), YACS::ENGINE::XmlCpp::put(), YACS::ENGINE::XmlCorba::put(), and YACS::ENGINE::nodeParser::xmlToAny().
void* HandleOnLoadedPlugin =0 |
Definition at line 110 of file driver.cxx.
Referenced by LoadObserversPluginIfAny(), and UnLoadObserversPluginIfAny().
std::string LoadedDriverPluginLibrary |
Definition at line 109 of file driver.cxx.
|
static |
Definition at line 264 of file driver.cxx.
Referenced by Handler(), main(), and parse_opt().
|
static |
Definition at line 63 of file driver.cxx.
Referenced by YACS::HMI::EditionScript::onEdit().
Proc* p =0 |
Definition at line 263 of file driver.cxx.
Referenced by YACS::ENGINE::PythonNode::applyDPLScope(), YACS::ENGINE::SalomePythonNode::cloneNode(), YACS::ENGINE::CppNode::cloneNode(), YACS::ENGINE::PythonNode::cloneNode(), YACS::ENGINE::PyFuncNode::cloneNode(), YACS::ENGINE::SalomeContainerTools::CreateComponentInstance(), YACS::ENGINE::LocalContainer::createInternalInstance(), dumpState(), YACS::ENGINE::ElementaryNode::edRemovePort(), YACS::ENGINE::XmlNode::execute(), YACS::ENGINE::StudyInNode::execute(), YACS::ENGINE::SalomePythonNode::execute(), YACS::ENGINE::CORBANode::execute(), YACS::ENGINE::DistributedPythonNode::execute(), YACS::ENGINE::StudyOutNode::execute(), YACS::ENGINE::CppNode::execute(), YACS::ENGINE::SalomeNode::execute(), YACS::ENGINE::PythonNode::executeLocal(), YACS::ENGINE::PyFuncNode::executeLocal(), YACS::ENGINE::PythonNode::executeRemote(), YACS::ENGINE::PyFuncNode::executeRemote(), YACS::ENGINE::SalomeNode::getContainerLog(), YACS::ENGINE::Node::getDPLScopeInfo(), YACS::HMI::SceneLinkItem::getFromNode(), YACS::HMI::SceneLinkItem::getToNode(), Handler(), YACS::ENGINE::CORBAComponent::load(), YACS::ENGINE::SalomePythonNode::load(), Yacs_i::Load(), YACS::ENGINE::ProcCataLoader::loadCata(), YACS::ENGINE::PyFuncNode::loadLocal(), main(), operator<<(), Proc_i::Proc_i(), YACS::ENGINE::ProxyPort::ProxyPort(), YACS::ENGINE::OutputCppPort::put(), YACS::ENGINE::OutputXmlPort::put(), YACS::ENGINE::OutputCorbaPort::put(), YACS::ENGINE::OutputPyPort::put(), YACS::ENGINE::ForEachLoop::releaseDelegateOf(), YACS::switchtypeParser::select(), YACS::HMI::SceneLinkItem::setPath(), YACS::ENGINE::stateParser::setProc(), YACS::ENGINE::stateLoader::stateLoader(), YACSPMMLBasicsTest1::testYACSdriver_LRANN(), YACSPMMLBasicsTest1::testYACSdriver_PmmlDoesNotExist(), YACSPMMLBasicsTest1::testYACSdriverLinearRegression(), YACSPMMLBasicsTest1::testYACSdriverNeuralNetwork(), and YACS::ENGINE::Bloc::writeDot().