-// Copyright (C) 2007-2022 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
Engines_Component_i(orb, poa, contId, instanceName, interfaceName,true/*notif is true here for message*/,withRegistry) {
MESSAGE("SyrComponent_Impl::SyrComponent_Impl this " << hex << this << dec
<< "activate object instanceName("
- << instanceName << ") interfaceName(" << interfaceName << ")" )
+ << instanceName << ") interfaceName(" << interfaceName << ")" );
if ( kactivate ) {
_thisObj = this ;
_id = _poa->activate_object(_thisObj);
#else
Sleep(S*1000);
#endif
- ListOfSyr_Impl * aNewListOfSyr = new ListOfSyr_Impl( _orb , _poa, _contId,
+ ListOfSyr_Impl * aNewListOfSyr = nullptr;
+ Engines::Container_var cont = this->GetContainerRef();
+ if( cont->is_SSL_mode() )
+ {
+ aNewListOfSyr = new ListOfSyr_Impl_SSL( _orb , _poa, _contId,
instanceName() , interfaceName() ,
graphName() , nodeName() ) ;
+ }
+ else
+ {
+ aNewListOfSyr = new ListOfSyr_Impl_No_SSL( _orb , _poa, _contId,
+ instanceName() , interfaceName() ,
+ graphName() , nodeName() ) ;
+ }
SuperVisionTest::ListOfSyr_var iobject = (SuperVisionTest::ListOfSyr_var ) NULL ;
PortableServer::ObjectId * id = aNewListOfSyr->getId() ;
CORBA::Object_var obj = _poa->id_to_reference(*id);
const char * instanceName ,
const char * interfaceName ,
const char * graphName ,
- const char * nodeName ) :
- Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,true) {
+ const char * nodeName, bool withRegistry) :
+ Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,withRegistry) {
Names( graphName , nodeName ) ;
MESSAGE("ListOfSyr_Impl::ListOfSyr_Impl activate object instanceName("
<< instanceName << ") interfaceName(" << interfaceName << ") --> "
- << hex << (void *) this << dec )
+ << hex << (void *) this << dec );
beginService( "ListOfSyr_Impl::ListOfSyr_Impl" );
_thisObj = this ;
_id = _poa->activate_object(_thisObj);
Names( graphName , nodeName ) ;
MESSAGE("Syr_Impl::Syr_Impl activate object instanceName("
<< instanceName << ") interfaceName(" << interfaceName << ") --> "
- << hex << (void *) this << dec )
+ << hex << (void *) this << dec );
beginService( "Syr_Impl::Syr_Impl" );
_thisObj = this ;
_id = _poa->activate_object(_thisObj);