// duplicate service by default
S_out.Servicebydefault = S_in.Servicebydefault;
- unsigned int _length;
+ unsigned int _length, ind2;
// duplicate in Parameters
_length = S_in.ServiceinParameter.length();
S_out.ServiceinParameter.length(_length);
- for (unsigned int ind2 = 0; ind2 < _length ; ind2 ++)
+ for (ind2 = 0; ind2 < _length ; ind2 ++)
duplicate(S_out.ServiceinParameter[ind2],
S_in.ServiceinParameter[ind2]);
_length = S_in.ServiceoutParameter.length();
S_out.ServiceoutParameter.length(_length);
- for (unsigned int ind2 = 0; ind2 < _length ; ind2 ++)
+ for (ind2 = 0; ind2 < _length ; ind2 ++)
duplicate(S_out.ServiceoutParameter[ind2],
S_in.ServiceoutParameter[ind2]);
_length = S_in.ServiceinDataStreamParameter.length();
S_out.ServiceinDataStreamParameter.length(_length);
- for (unsigned int ind2 = 0; ind2 < _length ; ind2 ++)
+ for (ind2 = 0; ind2 < _length ; ind2 ++)
duplicate(S_out.ServiceinDataStreamParameter[ind2],
S_in.ServiceinDataStreamParameter[ind2]);
if(MYDEBUG) SCRUTE(_length);
S_out.ServiceoutDataStreamParameter.length(_length);
- for (unsigned int ind2 = 0; ind2 < _length ; ind2 ++)
+ for (ind2 = 0; ind2 < _length ; ind2 ++)
duplicate(S_out.ServiceoutDataStreamParameter[ind2],
S_in.ServiceoutDataStreamParameter[ind2]);
}
SALOME_ModuleCatalog::ListOfComponents_var list_composants
= Catalogue->GetComponentList();
-
+ unsigned int ind;
// Typed component list
MESSAGE("Get Typed Component list (GEOM Type)");
SALOME_ModuleCatalog::ListOfComponents_var list_typed_composants
= Catalogue->GetTypedComponentList(SALOME_ModuleCatalog::GEOM);
- for (unsigned int ind = 0; ind < list_typed_composants->length();ind++)
+ for (ind = 0; ind < list_typed_composants->length();ind++)
MESSAGE("Component GEOM list : " << list_typed_composants[ind]);
MESSAGE("Get Typed Component list (SUPERV Type)");
list_typed_composants
= Catalogue->GetTypedComponentList(SALOME_ModuleCatalog::SUPERV);
- for (unsigned int ind = 0; ind < list_typed_composants->length();ind++)
+ for (ind = 0; ind < list_typed_composants->length();ind++)
MESSAGE("Component SUPERV list : " << list_typed_composants[ind]);
// Get list of couple (component name, component icone)
SALOME_ModuleCatalog::ListOfIAPP_Affich_var list_composants_icone
= Catalogue->GetComponentIconeList();
- for (unsigned int ind = 0; ind < list_composants_icone->length();ind++)
+ for (ind = 0; ind < list_composants_icone->length();ind++)
{
MESSAGE("Component name: " << list_composants_icone[ind].modulename);
MESSAGE("Component icone: " << list_composants_icone[ind].moduleicone);
char* _path = NULL;
bool _find = false ;
+ unsigned int ind, ind1;
+
// Parse all the path prefixes
// looking for the wanted computer
- for (unsigned int ind = 0 ; ind < _personal_path_list.size() ; ind++)
+ for (ind = 0 ; ind < _personal_path_list.size() ; ind++)
{
- for (unsigned int ind1 = 0 ; ind1 < _personal_path_list[ind].listOfComputer.size() ; ind1++)
+ for (ind1 = 0 ; ind1 < _personal_path_list[ind].listOfComputer.size() ; ind1++)
{
if (strcmp(machinename, _personal_path_list[ind].listOfComputer[ind1].c_str()) == 0)
{
if (!_find)
{
- for (unsigned int ind = 0 ; ind < _general_path_list.size() ; ind++)
+ for (ind = 0 ; ind < _general_path_list.size() ; ind++)
{
- for (unsigned int ind1 = 0 ; ind1 < _general_path_list[ind].listOfComputer.size() ; ind1++)
+ for (ind1 = 0 ; ind1 < _general_path_list[ind].listOfComputer.size() ; ind1++)
{
if (strcmp(machinename, _general_path_list[ind].listOfComputer[ind1].c_str()) == 0)
{
_list_components->length(_personal_module_list.size());
+ unsigned int ind;
+
// All the components defined in the personal catalog are taken
- for(unsigned int ind=0; ind < _personal_module_list.size();ind++){
+ for(ind=0; ind < _personal_module_list.size();ind++){
_list_components[ind]=(_personal_module_list[ind].name).c_str();
if(MYDEBUG) SCRUTE(_list_components[ind]) ;
}
// The components in the general catalog are taken only if they're
// not defined in the personal catalog
-#ifndef WIN32
- for(unsigned int ind=0; ind < _general_module_list.size();ind++){
-#else
for(ind=0; ind < _general_module_list.size();ind++){
-#endif
_find = false;
for(unsigned int ind1=0; ind1 < _personal_module_list.size();ind1++){
// searching if the component is already defined in
_list_components_icone->length(_personal_module_list.size());
+ unsigned int ind;
+
// All the components defined in the personal catalog are taken
- for(unsigned int ind=0; ind < _personal_module_list.size();ind++){
+ for(ind=0; ind < _personal_module_list.size();ind++){
_list_components_icone[ind].modulename=(_personal_module_list[ind].name).c_str();
_list_components_icone[ind].moduleusername=(_personal_module_list[ind].username).c_str();
_list_components_icone[ind].moduleicone=(_personal_module_list[ind].icon).c_str();
// The components in the general catalog are taken only if they're
// not defined in the personal catalog
-#ifndef WIN32
- for(unsigned int ind=0; ind < _general_module_list.size();ind++){
-#else
for(ind=0; ind < _general_module_list.size();ind++){
-#endif
_find = false;
for(unsigned int ind1=0; ind1 < _personal_module_list.size();ind1++){
// searching if the component is aleready defined in
break;
}
+ unsigned int ind;
+
// All the components in the personal catalog are taken
- for (unsigned int ind=0; ind < _personal_module_list.size();ind++)
+ for (ind=0; ind < _personal_module_list.size();ind++)
{
if (_personal_module_list[ind].type == _temp_component_type)
{
// The components in the general catalog are taken only if they're
// not defined in the personal catalog
-#ifndef WIN32
- for (unsigned int ind=0; ind < _general_module_list.size();ind++)
-#else
for (ind=0; ind < _general_module_list.size();ind++)
-#endif
{
_find = false;
{
ParserComponent * C_parser = NULL;
+ unsigned int ind;
+
if (!C_parser)
- for (unsigned int ind=0; ind < _personal_module_list.size();ind++)
+ for (ind=0; ind < _personal_module_list.size();ind++)
{
if (name.compare(_personal_module_list[ind].name) == 0)
{
}
if (!C_parser)
- for (unsigned int ind=0; ind < _general_module_list.size();ind++)
+ for (ind=0; ind < _general_module_list.size();ind++)
{
if (name.compare(_general_module_list[ind].name) == 0)
{
S_corba.TypeOfNode = S_parser.typeOfNode;
- unsigned int _length;
+ unsigned int _length, ind2;
// duplicate in Parameters
_length = S_parser.inParameters.size();
S_corba.ServiceinParameter.length(_length);
- for (unsigned int ind2 = 0; ind2 < _length ; ind2 ++)
+ for (ind2 = 0; ind2 < _length ; ind2 ++)
duplicate(S_corba.ServiceinParameter[ind2],
S_parser.inParameters[ind2]);
_length = S_parser.outParameters.size();
S_corba.ServiceoutParameter.length(_length);
-#ifndef WIN32
- for (unsigned int ind2 = 0; ind2 < _length ; ind2 ++)
-#else
for (ind2 = 0; ind2 < _length ; ind2 ++)
-#endif
duplicate(S_corba.ServiceoutParameter[ind2],
S_parser.outParameters[ind2]);
_length = S_parser.inDataStreamParameters.size();
S_corba.ServiceinDataStreamParameter.length(_length);
-#ifndef WIN32
- for (unsigned int ind2 = 0; ind2 < _length ; ind2 ++)
-#else
for (ind2 = 0; ind2 < _length ; ind2 ++)
-#endif
duplicate(S_corba.ServiceinDataStreamParameter[ind2],
S_parser.inDataStreamParameters[ind2]);
// if(MYDEBUG) SCRUTE(_length);
S_corba.ServiceoutDataStreamParameter.length(_length);
-#ifndef WIN32
- for (unsigned int ind2 = 0; ind2 < _length ; ind2 ++)
-#else
for (ind2 = 0; ind2 < _length ; ind2 ++)
-#endif
duplicate(S_corba.ServiceoutDataStreamParameter[ind2],
S_parser.outDataStreamParameters[ind2]);
}
bool _return_value = true;
vector<string> _machine_list;
+ unsigned int ind, ind1;
+
// Fill a list of all computers indicated in the path list
- for (unsigned int ind = 0; ind < pathList.size(); ind++)
+ for (ind = 0; ind < pathList.size(); ind++)
{
- for (unsigned int ind1 = 0 ; ind1 < pathList[ind].listOfComputer.size(); ind1++)
+ for (ind1 = 0 ; ind1 < pathList[ind].listOfComputer.size(); ind1++)
{
_machine_list.push_back(pathList[ind].listOfComputer[ind1]);
}
}
// Parse if a computer name is twice in the list of computers
- for (unsigned int ind = 0; ind < _machine_list.size(); ind++)
+ for (ind = 0; ind < _machine_list.size(); ind++)
{
- for (unsigned int ind1 = ind+1 ; ind1 < _machine_list.size(); ind1++)
+ for (ind1 = ind+1 ; ind1 < _machine_list.size(); ind1++)
{
if(_machine_list[ind].compare(_machine_list[ind1]) == 0)
{