#include <SessionCataLoader.hxx>
Public Member Functions | |
SessionCataLoader () | |
SessionCataLoader (const std::string &path) | |
virtual | ~SessionCataLoader () |
virtual void | loadCata (Catalog *cata) |
virtual void | loadTypesOld (Catalog *cata) |
virtual void | loadTypes (Catalog *cata, SALOME_ModuleCatalog::ModuleCatalog_ptr catalog) |
virtual CatalogLoader * | newLoader (const std::string &path) |
virtual void | importComponent (Catalog *cata, SALOME_ModuleCatalog::Acomponent_ptr compo) |
import a SALOME component definition in a YACS catalog More... | |
Public Member Functions inherited from YACS::ENGINE::CatalogLoader | |
CatalogLoader () | |
CatalogLoader (const std::string &path) | |
virtual | ~CatalogLoader () |
virtual void | load (Catalog *cata, const std::string &path) |
Protected Attributes | |
std::string | _errors |
Protected Attributes inherited from YACS::ENGINE::CatalogLoader | |
std::string | _path |
Definition at line 34 of file SessionCataLoader.hxx.
|
inline |
SessionCataLoader::SessionCataLoader | ( | const std::string & | path | ) |
Definition at line 36 of file SessionCataLoader.cxx.
|
virtual |
Definition at line 223 of file SessionCataLoader.cxx.
References DEBTRACE.
|
virtual |
import a SALOME component definition in a YACS catalog
SALOME components can have several interfaces. YACS for the moment allows only one interface by component, so if there is only one interface we import it. If we have more than one interface, we import the one with the same name as the component or the first one.
cata | : a YACS catalog |
compo | : a CORBA reference on a component in a SALOME_ModuleCatalog |
Definition at line 66 of file SessionCataLoader.cxx.
References YACS::ENGINE::Catalog::_componentMap, _errors, YACS::ENGINE::ComponentDefinition::_serviceMap, YACS::ENGINE::Catalog::_typeMap, YACS::ENGINE::Runtime::createCompoNode(), DEBTRACE, YACS::ENGINE::ElementaryNode::edAddInputDataStreamPort(), YACS::ENGINE::ElementaryNode::edAddInputPort(), YACS::ENGINE::ElementaryNode::edAddOutputDataStreamPort(), YACS::ENGINE::ElementaryNode::edAddOutputPort(), YACS::ENGINE::getRuntime(), YACS::ENGINE::ServiceNode::setMethod(), and YACS::ENGINE::ServiceNode::setRef().
Referenced by loadCata().
|
virtual |
Implements YACS::ENGINE::CatalogLoader.
Definition at line 381 of file SessionCataLoader.cxx.
References _errors, YACS::ENGINE::CatalogLoader::_path, DEBTRACE, YACS::ENGINE::RuntimeSALOME::getOrb(), YACS::ENGINE::getSALOMERuntime(), CORBAEngineTest::i, importComponent(), loadTypes(), loadTypesOld(), orb, and YACS::ENGINE::Catalog::setErrors().
|
virtual |
Definition at line 228 of file SessionCataLoader.cxx.
References YACS::ENGINE::Runtime::_tc_bool, YACS::ENGINE::Runtime::_tc_double, YACS::ENGINE::Runtime::_tc_int, YACS::ENGINE::Runtime::_tc_string, YACS::ENGINE::Catalog::_typeMap, YACS::ENGINE::TypeCodeStruct::addMember(), YACS::ENGINE::Array, YACS::ENGINE::Bool, YACS::ENGINE::Runtime::createInterfaceTc(), YACS::ENGINE::Runtime::createSequenceTc(), YACS::ENGINE::Runtime::createStructTc(), DEBTRACE, YACS::ENGINE::getRuntime(), CORBAEngineTest::i, YACS::ENGINE::TypeCode::id(), YACS::ENGINE::RefCounter::incrRef(), YACS::ENGINE::Int, gui.GraphViewer::m, YACS::ENGINE::TypeCodeStruct::name(), YACS::ENGINE::Objref, and gui.Appli::t.
Referenced by loadCata().
|
virtual |
Definition at line 302 of file SessionCataLoader.cxx.
References YACS::ENGINE::Catalog::_typeMap, and YACS::ENGINE::getRuntime().
Referenced by loadCata().
|
inlinevirtual |
Implements YACS::ENGINE::CatalogLoader.
Definition at line 43 of file SessionCataLoader.hxx.
References SessionCataLoader().
|
protected |
Definition at line 46 of file SessionCataLoader.hxx.
Referenced by importComponent(), and loadCata().