{
for (ObsListIter it (myObservers.begin()); it != myObservers.end(); ++it)
{
- if ( it->first->_is_equivalent(theObs) ) {
- myObservers.erase( it );
- break;
- }
+ if ( it->first->_is_equivalent(theObs) ) {
+ myObservers.erase( it );
+ break;
+ }
}
}
void SALOMEDS_Study_i::Init()
{
if (!_closed)
- throw SALOMEDS::Study::StudyInvalidReference();
+ //throw SALOMEDS::Study::StudyInvalidReference();
+ return;
SALOMEDS::Locker lock;
MESSAGE ( "We have found an engine for data type :"<< compodatatype);
//_narrow can throw a corba exception
try {
- CORBA::Object_var obj = _orb->string_to_object(IOREngine);
- if (!CORBA::is_nil(obj)) {
- SALOMEDS::Driver_var anEngine = SALOMEDS::Driver::_narrow(obj) ;
- if (!anEngine->_is_nil()) {
- SALOMEDS::unlock();
- anEngine->Close(sco);
- SALOMEDS::lock();
- }
- }
+ CORBA::Object_var obj = _orb->string_to_object(IOREngine);
+ if (!CORBA::is_nil(obj)) {
+ SALOMEDS::Driver_var anEngine = SALOMEDS::Driver::_narrow(obj) ;
+ if (!anEngine->_is_nil()) {
+ SALOMEDS::unlock();
+ anEngine->Close(sco);
+ SALOMEDS::lock();
+ }
+ }
}
catch (CORBA::Exception&) {
}
throw SALOMEDS::Study::StudyInvalidReference();
std::vector<SALOMEDSImpl_SObject> aSeq = _impl->FindObjectByName(std::string((char*)anObjectName),
- std::string((char*)aComponentName));
+ std::string((char*)aComponentName));
SALOMEDS::Study::ListOfSObject_var listSO = new SALOMEDS::Study::ListOfSObject;
int aLength = aSeq.size();
void SALOMEDS_Study_i::SetReal(const char* theVarName, CORBA::Double theValue)
{
if (_closed)
- throw SALOMEDS::Study::StudyInvalidReference();
+ throw SALOMEDS::Study::StudyInvalidReference();
- _impl->SetVariable(std::string(theVarName),
- theValue,
- SALOMEDSImpl_GenericVariable::REAL_VAR);
+ _impl->SetVariable(std::string(theVarName),
+ theValue,
+ SALOMEDSImpl_GenericVariable::REAL_VAR);
if (_notifier)
_notifier->modifyNB_Notification(theVarName);
}
//============================================================================
/*! Function : SetInteger
- * Purpose :
+ * Purpose :
*/
//============================================================================
void SALOMEDS_Study_i::SetInteger(const char* theVarName, CORBA::Long theValue)
throw SALOMEDS::Study::StudyInvalidReference();
_impl->SetVariable(std::string(theVarName),
- theValue,
- SALOMEDSImpl_GenericVariable::INTEGER_VAR);
+ theValue,
+ SALOMEDSImpl_GenericVariable::INTEGER_VAR);
if (_notifier)
_notifier->modifyNB_Notification(theVarName);
}
throw SALOMEDS::Study::StudyInvalidReference();
_impl->SetVariable(std::string(theVarName),
- theValue,
- SALOMEDSImpl_GenericVariable::BOOLEAN_VAR);
+ theValue,
+ SALOMEDSImpl_GenericVariable::BOOLEAN_VAR);
if (_notifier)
_notifier->modifyNB_Notification(theVarName);
}
throw SALOMEDS::Study::StudyInvalidReference();
_impl->SetStringVariable(std::string(theVarName),
- theValue,
- SALOMEDSImpl_GenericVariable::STRING_VAR);
+ theValue,
+ SALOMEDSImpl_GenericVariable::STRING_VAR);
if (_notifier)
_notifier->modifyNB_Notification(theVarName);
}
throw SALOMEDS::Study::StudyInvalidReference();
_impl->SetStringVariableAsDouble(std::string(theVarName),
- theValue,
- SALOMEDSImpl_GenericVariable::STRING_VAR);
+ theValue,
+ SALOMEDSImpl_GenericVariable::STRING_VAR);
}
//============================================================================
throw SALOMEDS::Study::StudyInvalidReference();
return _impl->IsTypeOf(std::string(theVarName),
- SALOMEDSImpl_GenericVariable::REAL_VAR);
+ SALOMEDSImpl_GenericVariable::REAL_VAR);
}
//============================================================================
throw SALOMEDS::Study::StudyInvalidReference();
return _impl->IsTypeOf(std::string(theVarName),
- SALOMEDSImpl_GenericVariable::INTEGER_VAR);
+ SALOMEDSImpl_GenericVariable::INTEGER_VAR);
}
//============================================================================
throw SALOMEDS::Study::StudyInvalidReference();
return _impl->IsTypeOf(std::string(theVarName),
- SALOMEDSImpl_GenericVariable::BOOLEAN_VAR);
+ SALOMEDSImpl_GenericVariable::BOOLEAN_VAR);
}
//============================================================================
throw SALOMEDS::Study::StudyInvalidReference();
return _impl->IsTypeOf(std::string(theVarName),
- SALOMEDSImpl_GenericVariable::STRING_VAR);
+ SALOMEDSImpl_GenericVariable::STRING_VAR);
}
//============================================================================