test_inDataStreamParameter_name="inParameter-name";
test_inDataStreamParameter_dependency="inParameter-dependency";
test_inDataStreamParameter="inParameter";
- test_inDataStreamParameter_list="inDataStreamParameter-list";
+ test_inDataStreamParameter_list="DataStream-list";
test_outDataStreamParameter_type="outParameter-type";
test_outDataStreamParameter_name="outParameter-name";
test_outDataStreamParameter_dependency="outParameter-dependency";
test_outDataStreamParameter="outParameter";
- test_outDataStreamParameter_list="outDataStreamParameter-list";
+ test_outDataStreamParameter_list="DataStream-list";
test_service= "component-service";
test_service_list="component-service-list";
//tag test_inParameter_name
if ((qName.compare(test_inParameter_name)==0)) {
+ SCRUTE(parent);
+ SCRUTE(grandparent);
if (grandparent.compare(test_inDataStreamParameter_list) == 0)
_inDataStreamParam.parserParamName = content ;
else
- _inParam.parserParamName = content ;
+ _inParam.parserParamName = content ;
return true;
}
//tag test_inParameter
if ((qName.compare(test_inParameter)==0))
{
- SCRUTE(parent);
if (parent.compare(test_inParameter_list)==0) {
+ MESSAGE("add inParameter : " << _inParam.parserParamName);
_inParamList.push_back(_inParam) ;
// Empty temporary structures
_inParam.parserParamName = "";
}
else if ((qName.compare(test_inDataStreamParameter)==0)) {
- SCRUTE(parent);
+ MESSAGE("add inDataStreamParameter : " << _inDataStreamParam.parserParamName);
_inDataStreamParamList.push_back(_inDataStreamParam) ;
// Empty temporary structures
//tag test_inParameter_list
if((qName.compare(test_inParameter_list)==0))
{
+ SCRUTE(_inParamList.size());
_aService.parserServiceInParameter = _inParamList;
_inParamList.resize(0);
return true;
//tag test_inDataStreamParameter_list
if((qName.compare(test_inDataStreamParameter_list)==0))
{
+ SCRUTE(_inDataStreamParamList.size());
_aService.parserServiceInDataStreamParameter = _inDataStreamParamList;
_inDataStreamParamList.resize(0);
+ }
+ //tag test_outDataStreamParameter_list
+ if((qName.compare(test_outDataStreamParameter_list)==0))
+ {
+ SCRUTE(_outDataStreamParamList.size());
+ _aService.parserServiceOutDataStreamParameter = _outDataStreamParamList;
+ _outDataStreamParamList.resize(0);
return true;
}
+
// Parameter out
+ SCRUTE(qName);
// tag test_outParameter_type
if ((qName.compare(test_outParameter_type)==0)) {
//tag test_outDataStreamParameter_name
if ((qName.compare(test_outDataStreamParameter_name)==0)) {
+ SCRUTE(grandparent);
+ SCRUTE(test_outDataStreamParameter_list);
if (grandparent.compare(test_outDataStreamParameter_list) == 0)
_outDataStreamParam.parserParamName = content ;
else
//tag test_outParameter
if ((qName.compare(test_outParameter)==0))
{
- SCRUTE(parent);
if (parent.compare(test_outParameter_list)==0) {
+ MESSAGE("add outParameter : " << _outParam.parserParamName);
_outParamList.push_back(_outParam) ;
// Empty temporary structures
_outParam.parserParamName = "";
}
else if ((qName.compare(test_outDataStreamParameter)==0)) {
- SCRUTE(parent);
+ MESSAGE("add outDataStreamParameter : " << _outDataStreamParam.parserParamName);
_outDataStreamParamList.push_back(_outDataStreamParam) ;
// Empty temporary structures
//tag test_outParameter_list
if((qName.compare(test_outParameter_list)==0))
{
+ SCRUTE(_outParamList.size());
_aService.parserServiceOutParameter = _outParamList;
_outParamList.resize(0);
return true;
}
- //tag test_outDataStreamParameter_list
- if((qName.compare(test_outDataStreamParameter_list)==0))
- {
- _aService.parserServiceOutDataStreamParameter = _outDataStreamParamList;
- _outDataStreamParamList.resize(0);
- return true;
- }
-
-
// tag test_service
if((qName.compare(test_service)==0))
{
bool SALOME_ModuleCatalog_Handler::endDocument()
{
ofstream f("/tmp/logs/tajchman/xxx.log", std::ofstream::app);
+ f << "---------------------------------------------------------" << std::endl;
BEGIN_OF("endDocument");
//_pathlist
for (unsigned int ind = 0; ind < _pathList.size(); ind++)
reader.setErrorHandler( handler );
reader.parse( source );
xmlFile.close();
- unsigned int ind;
- for ( ind = 0; ind < _moduleList.size(); ind++)
- modulelist.push_back(_moduleList[ind]) ;
+
+ unsigned int ind, j;
+ for ( ind = 0; ind < _moduleList.size(); ind++) {
+ for (j=0; j<modulelist.size(); j++)
+ if (modulelist[j].parserComponentName ==
+ _moduleList[ind].parserComponentName) {
+ modulelist[ind] = _moduleList[ind];
+ }
+ if (j == modulelist.size())
+ modulelist.push_back(_moduleList[ind]) ;
+ }
+
for ( ind = 0; ind < _pathList.size(); ind++)
pathList.push_back(_pathList[ind]) ;
}
+void
+SALOME_ModuleCatalogImpl::ImportXmlCatalogFile(const char* file)
+{
+ _parse_xml_file(file, _personal_module_list, _personal_path_list);
+}
+
//----------------------------------------------------------------------
// Function : duplicate_interfaces
// Purpose : create a list of interfaces from the parsing of the catalog