From: tajchman Date: Wed, 31 Mar 2004 11:47:59 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=623a6989bc6d29e153cc4ba8789b1d5dca28a373;p=modules%2Fkernel.git *** empty log message *** --- diff --git a/idl/SALOME_ModuleCatalog.idl b/idl/SALOME_ModuleCatalog.idl index 227c6b7e0..dbc609603 100644 --- a/idl/SALOME_ModuleCatalog.idl +++ b/idl/SALOME_ModuleCatalog.idl @@ -58,11 +58,34 @@ This struct contains fields defining the parameter of the service. string Parametername; /*! ListOfServicesParameter; + typedef sequence ListOfServicesDataStreamParameter; /*! This struct contains fields completely defining each service. @@ -70,10 +93,12 @@ This struct contains fields completely defining each service. struct Service { - string ServiceName; /*! listOfComputer ; + std::string path; + std::vector listOfComputer ; }; -typedef vector ListOfParserPathPrefix ; +typedef std::vector ListOfParserPathPrefix ; enum ParserComponentType {GEOM, MESH, Med, SOLVER, DATA, VISU, SUPERV, OTHER} ; struct ParserServParam { - string parserParamType; - string parserParamName; + std::string parserParamType; + std::string parserParamName; } ; struct ParserServDataStreamParam { - string parserParamType; - string parserParamName; - string parserParamDependency; + std::string parserParamType; + std::string parserParamName; + std::string parserParamDependency; } ; -typedef vector ListOfParserServicesParameter; -typedef vector ListOfParserServicesDataStreamParameter; +typedef std::vector ListOfParserServicesParameter; +typedef std::vector ListOfParserServicesDataStreamParameter; struct ParserService { - string parserServiceName; + std::string parserServiceName; ListOfParserServicesParameter parserServiceInParameter; ListOfParserServicesParameter parserServiceOutParameter; ListOfParserServicesDataStreamParameter parserServiceInDataStreamParameter; @@ -70,28 +70,28 @@ struct ParserService bool parserServiceByDefault; } ; -typedef vector ListOfParserServices ; +typedef std::vector ListOfParserServices ; struct ParserDefInterface { - string parserInterfaceName ; + std::string parserInterfaceName ; ListOfParserServices parserInterfaceServiceList ; } ; -typedef vector ListOfDefinitionInterface; +typedef std::vector ListOfDefinitionInterface; struct ParserComponent { - string parserComponentName; - string parserComponentUsername; + std::string parserComponentName; + std::string parserComponentUsername; ParserComponentType parserComponentType; bool parserComponentMultistudy ; - string parserComponentIcon; + std::string parserComponentIcon; ListOfDefinitionInterface parserListInterface; - string parserConstraint ; + std::string parserConstraint ; }; -typedef vector ListOfParserComponent ; +typedef std::vector ListOfParserComponent ; #ifdef WRITE_CATA_COMPONENT // contains all the paths and the computers defined in the catalog @@ -105,52 +105,4 @@ extern ListOfParserComponent _moduleList; #endif -inline void DebugParserService(const ParserService &S) -{ - MESSAGE("Service name : " << S.parserServiceName); - MESSAGE("Service default : " << S.parserServiceByDefault); - - for (unsigned int k=0; k + +std::ostream & operator<< (std::ostream & f, const ParserServParam & P) +{ + f << " name : " << P.parserParamName << std::endl; + f << " type : " << P.parserParamType << std::endl; + return f; +} + +std::ostream & operator<< (std::ostream & f, + const ParserServDataStreamParam & P) +{ + f << " name : " << P.parserParamName << std::endl; + f << " type : " << P.parserParamType << std::endl; + f << " dependency : " << P.parserParamDependency << std::endl; + return f; +} + +std::ostream & operator<< (std::ostream & f, + const ParserService & S) +{ + int i, n; + f << " name : " << S.parserServiceName << std::endl; + f << " default : " << (S.parserServiceByDefault ? "yes" : "no") + << std::endl; + + n = S.parserServiceInParameter.size(); + f << " in parameters : " << n << std::endl; + for (i=0; i + +std::ostream & operator<< (std::ostream & f, + const ParserServParam & P); +std::ostream & operator<< (std::ostream & f, + const ParserServDataStreamParam & P); + +std::ostream & operator<< (std::ostream & f, + const ParserService & S); + +std::ostream & operator<< (std::ostream & f, + const ParserDefInterface & I); + +std::ostream & operator<< (std::ostream & f, + const ParserComponent & C); + +std::ostream & operator<< (std::ostream & f, + const ParserComponentType & T); + +#endif + diff --git a/src/ModuleCatalog/SALOME_ModuleCatalog_impl.cxx b/src/ModuleCatalog/SALOME_ModuleCatalog_impl.cxx index 68c50c116..b2337f486 100644 --- a/src/ModuleCatalog/SALOME_ModuleCatalog_impl.cxx +++ b/src/ModuleCatalog/SALOME_ModuleCatalog_impl.cxx @@ -434,7 +434,7 @@ SALOME_ModuleCatalogImpl::GetComponent(const char* componentname) if (p) { - DebugParserComponent(*p); +// DebugParserComponent(*p); // get constraint _constraint = CORBA::string_dup(p->parserConstraint.c_str());