- if (theIsPublished)
- {
- SALOMEDS::AttributeParameter_var ap = aStudy->GetModuleParameters("Interface Applicative", "Post-Pro", -1);
- if(!CORBA::is_nil(ap)) {
- std::map<std::string,std::string>::iterator it = aEntry2NameMap.begin();
- for( ;it != aEntry2NameMap.end(); it++ ) {
- //1. Encode entry
- if ( ((*it).first).length() < 7 ) continue;
- std::string tail( (*it).first, 6, ((*it).first).length()-1 );
- std::string newEntry(ComponentDataType());
- newEntry+=("_"+tail);
-
- CORBA::String_var anEntry = CORBA::string_dup(newEntry.c_str());
+ if (theIsPublished) {
+ SALOMEDS::AttributeParameter_var ap = aStudy->GetModuleParameters("Interface Applicative", "Post-Pro", -1);
+ if (!CORBA::is_nil(ap)) {
+ std::map<std::string,std::string>::iterator it = aEntry2NameMap.begin();
+ for ( ;it != aEntry2NameMap.end(); it++ ) {
+ //1. Encode entry
+ if ( ((*it).first).length() < 7 ) continue;
+ std::string tail( (*it).first, 6 );
+ std::string newEntry(ComponentDataType());
+ newEntry = newEntry + "_" + tail;
+
+ CORBA::String_var anEntry = CORBA::string_dup( newEntry.c_str() );