Salome HOME
Fast SSL porting for testbase
authorAnthony Geay <anthony.geay@edf.fr>
Tue, 16 Aug 2022 08:43:38 +0000 (10:43 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Tue, 16 Aug 2022 11:21:45 +0000 (13:21 +0200)
20 files changed:
src/AddComponent/AddComponent_Impl.cxx
src/AddComponent/AddComponent_Impl.hxx
src/DataStreamComponent/DataStreamComponent_Impl.cxx
src/DataStreamComponent/DataStreamComponent_Impl.hxx
src/DivComponent/DivComponent.cxx
src/DivComponent/DivComponent.hxx
src/MulComponent/MulComponent.cxx
src/MulComponent/MulComponent.hxx
src/SIGNALSComponent/SIGNALSComponent.cxx
src/SIGNALSComponent/SIGNALSComponent.hxx
src/SIGNALSComponent/SIGNALSComponent_Impl.cxx
src/SIGNALSComponent/SIGNALSComponent_Impl.hxx
src/SubComponent/SubComponent.cxx
src/SubComponent/SubComponent.hxx
src/SyrComponent/SyrComponent_Impl.cxx
src/SyrComponent/SyrComponent_Impl.hxx
src/TypesCheck/TypesCheck_Impl.cxx
src/TypesCheck/TypesCheck_Impl.hxx
src/UndefinedSymbolComponent/UndefinedSymbolComponent.cxx
src/UndefinedSymbolComponent/UndefinedSymbolComponent.hxx

index a3cea5b5c55d8af8f497284d429219b4aae240db..b97ce50da5c02395c10e70172bce7a5d7bb5a939 100644 (file)
@@ -50,8 +50,8 @@ AddComponent_Impl::AddComponent_Impl( CORBA::ORB_ptr orb,
                                      PortableServer::POA_ptr poa,
                                      PortableServer::ObjectId * contId, 
                                      const char *instanceName,
-                                      const char *interfaceName) :
-  Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,true) {
+              const char *interfaceName, bool withRegistry) :
+  Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,withRegistry) {
   MESSAGE("AddComponent_Impl::AddComponent_Impl this " << hex << this << dec
           << "activate object instanceName("
           << instanceName << ") interfaceName(" << interfaceName << ")" )
@@ -277,8 +277,17 @@ extern "C"
     MESSAGE("AddComponentEngine_factory AddComponentEngine ("
             << instanceName << "," << interfaceName << "," << _getpid() << ")");
 #endif
-    AddComponent_Impl * myAddComponent 
-      = new AddComponent_Impl(orb, poa, contId, instanceName, interfaceName);
+    CORBA::Object_var o = poa->id_to_reference(*contId);
+    Engines::Container_var cont = Engines::Container::_narrow(o);
+    AddComponent_Impl * myAddComponent = nullptr;
+    if(cont->is_SSL_mode())
+    {
+      myAddComponent = new AddComponent_Impl_SSL(orb, poa, contId, instanceName, interfaceName);
+    }
+    else
+    {
+      myAddComponent = new AddComponent_Impl_No_SSL(orb, poa, contId, instanceName, interfaceName);
+    }
     return myAddComponent->getId() ;
   }
 }
index 163aff19d5300cbef445e5e9f889e5479736cecf..94e5481332eddadafcb185027c92a956f724d807 100644 (file)
@@ -44,7 +44,7 @@ public:
                     PortableServer::POA_ptr poa,
                     PortableServer::ObjectId * contId, 
                     const char *instanceName,
-                     const char *interfaceName);
+                     const char *interfaceName, bool withRegistry);
 
   virtual ~AddComponent_Impl();
 
@@ -83,6 +83,26 @@ private:
 
 };
 
+class ADDCOMPONENTENGINE_EXPORT AddComponent_Impl_SSL : public AddComponent_Impl
+{
+public:
+  AddComponent_Impl_SSL( CORBA::ORB_ptr orb,
+                    PortableServer::POA_ptr poa,
+                    PortableServer::ObjectId * contId, 
+                    const char *instanceName,
+         const char *interfaceName):AddComponent_Impl(orb,poa,contId,instanceName,interfaceName,false) { }
+};
+
+class ADDCOMPONENTENGINE_EXPORT AddComponent_Impl_No_SSL : public AddComponent_Impl
+{
+public:
+  AddComponent_Impl_No_SSL( CORBA::ORB_ptr orb,
+                    PortableServer::POA_ptr poa,
+                    PortableServer::ObjectId * contId, 
+                    const char *instanceName,
+         const char *interfaceName):AddComponent_Impl(orb,poa,contId,instanceName,interfaceName,true) { }
+};
+
 extern "C"
   ADDCOMPONENTENGINE_EXPORT
   PortableServer::ObjectId * AddComponentEngine_factory
index 74917f27da4d9716fdf34bb326b392b0b41d2340..0f13d9bd1c5b8255c873cec617b0500bfbc7c5ef 100644 (file)
@@ -44,8 +44,8 @@ DataStreamFactory_Impl::DataStreamFactory_Impl( CORBA::ORB_ptr orb,
                                                PortableServer::POA_ptr poa,
                                                PortableServer::ObjectId * contId, 
                                                const char *instanceName,
-                                                const char *interfaceName) :
-  Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,true) {
+                                                const char *interfaceName, bool withRegistry) :
+  Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,withRegistry) {
   MESSAGE("DataStreamFactory_Impl::DataStreamFactory_Impl this " << hex << this << dec
           << "activate object instanceName("
           << instanceName << ") interfaceName(" << interfaceName << ")" )
@@ -122,8 +122,17 @@ extern "C"
     MESSAGE("DataStreamFactoryEngine_factory DataStreamFactoryEngine ("
             << instanceName << "," << interfaceName << "," << _getpid() << ")");
 #endif
-    DataStreamFactory_Impl * myDataStreamFactory 
-      = new DataStreamFactory_Impl(orb, poa, contId, instanceName, interfaceName);
+    DataStreamFactory_Impl * myDataStreamFactory = nullptr;
+    CORBA::Object_var o = poa->id_to_reference(*contId);
+    Engines::Container_var cont = Engines::Container::_narrow(o);    
+    if(cont->is_SSL_mode())
+    {
+      myDataStreamFactory = new DataStreamFactory_Impl_SSL(orb, poa, contId, instanceName, interfaceName);
+    }
+    else
+    {
+      myDataStreamFactory = new DataStreamFactory_Impl_No_SSL(orb, poa, contId, instanceName, interfaceName);
+    }
     return myDataStreamFactory->getId() ;
   }
 }
index b269a42f58ae08acabb45f08721d9971ed39b84e..d5e4403bfab560d11175793f2da84243f95c092b 100644 (file)
@@ -52,7 +52,7 @@ public:
                          PortableServer::POA_ptr poa,
                          PortableServer::ObjectId * contId, 
                          const char *instanceName,
-                          const char *interfaceName);
+                          const char *interfaceName, bool withRegistry);
 
   virtual ~DataStreamFactory_Impl();
 
@@ -76,6 +76,26 @@ private:
 
 };
 
+class DATASTREAMFACTORYENGINE_EXPORT DataStreamFactory_Impl_SSL : public DataStreamFactory_Impl
+{
+public:
+  DataStreamFactory_Impl_SSL( CORBA::ORB_ptr orb,
+                         PortableServer::POA_ptr poa,
+                         PortableServer::ObjectId * contId, 
+                         const char *instanceName,
+                          const char *interfaceName):DataStreamFactory_Impl(orb,poa,contId,instanceName,interfaceName,false) { }
+};
+
+class DATASTREAMFACTORYENGINE_EXPORT DataStreamFactory_Impl_No_SSL : public DataStreamFactory_Impl
+{
+public:
+  DataStreamFactory_Impl_No_SSL( CORBA::ORB_ptr orb,
+                         PortableServer::POA_ptr poa,
+                         PortableServer::ObjectId * contId, 
+                         const char *instanceName,
+                          const char *interfaceName):DataStreamFactory_Impl(orb,poa,contId,instanceName,interfaceName,true) { }
+};
+
 extern "C"
   DATASTREAMFACTORYENGINE_EXPORT
   PortableServer::ObjectId * DataStreamFactoryEngine_factory
index e9115dec8433501980c5979371154894e7129957..e990575632b70f4fcb0a6ad920e8f1f1612ce754 100644 (file)
@@ -43,8 +43,8 @@ DivComponentEngine::DivComponentEngine( CORBA::ORB_ptr orb,
                                    PortableServer::POA_ptr poa,
                                    PortableServer::ObjectId * contId, 
                                    const char *instanceName,
-                                    const char *interfaceName) :
-  Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,true)
+                                    const char *interfaceName, bool withRegistry) :
+  Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,withRegistry)
 {
 //  MESSAGE("DivComponentEngine::DivComponentEngine activate object instanceName("
 //          << instanceName << ") interfaceName(" << interfaceName << ")" )
@@ -102,8 +102,17 @@ extern "C"
   {
     MESSAGE("DivComponentEngine_factory DivComponentEngine ("
             << instanceName << "," << interfaceName << ")");
-    DivComponentEngine * myDivComponent 
-      = new DivComponentEngine(orb, poa, contId, instanceName, interfaceName);
+    CORBA::Object_var o = poa->id_to_reference(*contId);
+    Engines::Container_var cont = Engines::Container::_narrow(o);
+    DivComponentEngine * myDivComponent = nullptr;
+    if(cont->is_SSL_mode())
+    {
+      myDivComponent = new DivComponentEngine_SSL(orb, poa, contId, instanceName, interfaceName);
+    }
+    else
+    {
+      myDivComponent = new DivComponentEngine_No_SSL(orb, poa, contId, instanceName, interfaceName);
+    }
     return myDivComponent->getId() ;
   }
 }
index 70f69299f3fabe68e68b6ecf0c86f4490550905f..2e272bec3b7e72ba03f6406ba8ab10fa912c02fa 100644 (file)
@@ -53,7 +53,7 @@ public:
                      PortableServer::POA_ptr poa,
                      PortableServer::ObjectId * contId, 
                      const char *instanceName,
-                      const char *interfaceName);
+                      const char *interfaceName, bool withRegistry);
 
   virtual ~DivComponentEngine();
 
@@ -67,6 +67,24 @@ private:
 
 };
 
+class DIVCOMPONENTENGINE_EXPORT DivComponentEngine_SSL : public DivComponentEngine
+{
+public:
+  DivComponentEngine_SSL( CORBA::ORB_ptr orb,
+                     PortableServer::POA_ptr poa,
+                     PortableServer::ObjectId * contId, 
+                     const char *instanceName, const char *interfaceName):DivComponentEngine(orb,poa,contId,instanceName,interfaceName,false) { }
+};
+
+class DIVCOMPONENTENGINE_EXPORT DivComponentEngine_No_SSL : public DivComponentEngine
+{
+public:
+  DivComponentEngine_No_SSL( CORBA::ORB_ptr orb,
+                     PortableServer::POA_ptr poa,
+                     PortableServer::ObjectId * contId, 
+                     const char *instanceName, const char *interfaceName):DivComponentEngine(orb,poa,contId,instanceName,interfaceName,true) { }
+};
+
 extern "C"
   DIVCOMPONENTENGINE_EXPORT
   PortableServer::ObjectId * DivComponentEngine_factory
index 5d06da02027f3f50e566df563913c78bf8b8323e..7a77e165839bb2e79cbea9e5e20fe89fdd12e7b1 100644 (file)
@@ -43,8 +43,8 @@ MulComponentEngine::MulComponentEngine( CORBA::ORB_ptr orb,
                                    PortableServer::POA_ptr poa,
                                    PortableServer::ObjectId * contId, 
                                    const char *instanceName,
-                                    const char *interfaceName) :
-  Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,true)
+                                    const char *interfaceName, bool withRegistry) :
+  Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,withRegistry)
 {
 //  MESSAGE("MulComponentEngine::MulComponentEngine activate object instanceName("
 //          << instanceName << ") interfaceName(" << interfaceName << ")" )
@@ -101,8 +101,17 @@ extern "C"
   {
     MESSAGE("MulComponentEngine_factory MulComponentEngine ("
             << instanceName << "," << interfaceName << ")");
-    MulComponentEngine * myMulComponent 
-      = new MulComponentEngine(orb, poa, contId, instanceName, interfaceName);
+    MulComponentEngine * myMulComponent = nullptr;
+    CORBA::Object_var o = poa->id_to_reference(*contId);
+    Engines::Container_var cont = Engines::Container::_narrow(o);
+    if(cont->is_SSL_mode())
+    {
+      myMulComponent = new MulComponentEngine_SSL(orb, poa, contId, instanceName, interfaceName);
+    }
+    else
+    {
+      myMulComponent = new MulComponentEngine_No_SSL(orb, poa, contId, instanceName, interfaceName);
+    }
     return myMulComponent->getId() ;
   }
 }
index 2280b07a92e5c12c856e6e838e13e66f3c946eb9..bb657184ba1efb5e463a4c3ee7d17c57eb902b5d 100644 (file)
@@ -53,7 +53,7 @@ public:
                      PortableServer::POA_ptr poa,
                      PortableServer::ObjectId * contId, 
                      const char *instanceName,
-                      const char *interfaceName);
+                      const char *interfaceName, bool withRegistry);
 
   virtual ~MulComponentEngine();
 
@@ -67,6 +67,26 @@ private:
 
 };
 
+class MULCOMPONENTENGINE_EXPORT MulComponentEngine_SSL :  public MulComponentEngine
+{
+public:
+  MulComponentEngine_SSL(CORBA::ORB_ptr orb,
+                     PortableServer::POA_ptr poa,
+                     PortableServer::ObjectId * contId, 
+                     const char *instanceName,
+                      const char *interfaceName):MulComponentEngine(orb,poa,contId,instanceName,interfaceName,false) { }
+};
+
+class MULCOMPONENTENGINE_EXPORT MulComponentEngine_No_SSL :  public MulComponentEngine
+{
+public:
+  MulComponentEngine_No_SSL(CORBA::ORB_ptr orb,
+                     PortableServer::POA_ptr poa,
+                     PortableServer::ObjectId * contId, 
+                     const char *instanceName,
+                      const char *interfaceName):MulComponentEngine(orb,poa,contId,instanceName,interfaceName,true) { }
+};
+
 extern "C"
   MULCOMPONENTENGINE_EXPORT
   PortableServer::ObjectId * MulComponentEngine_factory
index 2f07619ca7ae4c75a7efc11292c0bb4eecaf3052..a0a17b031877f92a9f094685b569803523621c1b 100644 (file)
@@ -42,8 +42,8 @@ SIGNALSComponentEngine::SIGNALSComponentEngine( CORBA::ORB_ptr orb,
                                    PortableServer::POA_ptr poa,
                                    PortableServer::ObjectId * contId, 
                                    const char *instanceName,
-                                    const char *interfaceName) :
-  Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,true)
+                                    const char *interfaceName, bool withRegistry) :
+  Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,withRegistry)
 {
   MESSAGE("SIGNALSComponentEngine::SIGNALSComponentEngine activate object instanceName("
           << instanceName << ") interfaceName(" << interfaceName << ")" )
@@ -95,8 +95,17 @@ extern "C"
   {
     MESSAGE("SIGNALSComponentEngine_factory SIGNALSComponentEngine ("
             << instanceName << "," << interfaceName << ")");
-    SIGNALSComponentEngine * mySIGNALSComponent 
-      = new SIGNALSComponentEngine(orb, poa, contId, instanceName, interfaceName);
+    SIGNALSComponentEngine * mySIGNALSComponent = nullptr;
+    CORBA::Object_var o = poa->id_to_reference(*contId);
+    Engines::Container_var cont = Engines::Container::_narrow(o);    
+    if(cont->is_SSL_mode())
+    {
+      mySIGNALSComponent = new SIGNALSComponentEngine_SSL(orb, poa, contId, instanceName, interfaceName);
+    }
+    else
+    {
+      mySIGNALSComponent = new SIGNALSComponentEngine_No_SSL(orb, poa, contId, instanceName, interfaceName);
+    }
     return mySIGNALSComponent->getId() ;
   }
 }
index 0ea32e1948475adfbef96113d31d3daffe1d17fe..4edf4815cf2a5fac51ff7a087a044ca6678b858c 100644 (file)
@@ -43,7 +43,7 @@ public:
                      PortableServer::POA_ptr poa,
                      PortableServer::ObjectId * contId, 
                      const char *instanceName,
-                      const char *interfaceName);
+                      const char *interfaceName, bool withRegistry);
 
   virtual ~SIGNALSComponentEngine();
 
@@ -56,6 +56,26 @@ private:
 
 };
 
+class SIGNALSCOMPONENTENGINE_EXPORT SIGNALSComponentEngine_SSL : public SIGNALSComponentEngine
+{
+public:
+  SIGNALSComponentEngine_SSL( CORBA::ORB_ptr orb,
+                     PortableServer::POA_ptr poa,
+                     PortableServer::ObjectId * contId, 
+                     const char *instanceName,
+                      const char *interfaceName):SIGNALSComponentEngine(orb,poa,contId,instanceName,interfaceName,false) { }
+};
+
+class SIGNALSCOMPONENTENGINE_EXPORT SIGNALSComponentEngine_No_SSL : public SIGNALSComponentEngine
+{
+public:
+  SIGNALSComponentEngine_No_SSL( CORBA::ORB_ptr orb,
+                     PortableServer::POA_ptr poa,
+                     PortableServer::ObjectId * contId, 
+                     const char *instanceName,
+                      const char *interfaceName):SIGNALSComponentEngine(orb,poa,contId,instanceName,interfaceName,true) { }
+};
+
 extern "C"
   SIGNALSCOMPONENTENGINE_EXPORT
   PortableServer::ObjectId * SIGNALSComponentEngine_factory
index 1559a096cfe0d35c4fd94fb5e560a3c9f461933e..e21402abdbabc1d56a795976b70661d94311e98d 100644 (file)
@@ -43,8 +43,8 @@ SIGNALSComponent_Impl::SIGNALSComponent_Impl( CORBA::ORB_ptr orb,
                                    PortableServer::POA_ptr poa,
                                    PortableServer::ObjectId * contId, 
                                    const char *instanceName,
-                                    const char *interfaceName) :
-  Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,true)
+                                    const char *interfaceName, bool withRegistry) :
+  Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,withRegistry)
 {
   MESSAGE("SIGNALSComponent_Impl::SIGNALSComponent_Impl activate object instanceName("
           << instanceName << ") interfaceName(" << interfaceName << ")" )
@@ -151,8 +151,17 @@ extern "C"
   {
     MESSAGE("SIGNALSComponentEngine_factory SIGNALSComponent_Impl("
             << instanceName << "," << interfaceName << ")");
-    SIGNALSComponent_Impl * mySIGNALSComponent 
-      = new SIGNALSComponent_Impl(orb, poa, contId, instanceName, interfaceName);
+    SIGNALSComponent_Impl * mySIGNALSComponent = nullptr;
+    CORBA::Object_var o = poa->id_to_reference(*contId);
+    Engines::Container_var cont = Engines::Container::_narrow(o);    
+    if(cont->is_SSL_mode())
+    {
+      mySIGNALSComponent = new SIGNALSComponentEngine_SSL(orb, poa, contId, instanceName, interfaceName);
+    }
+    else
+    {
+      mySIGNALSComponent = new SIGNALSComponentEngine_No_SSL(orb, poa, contId, instanceName, interfaceName);
+    }
     return mySIGNALSComponent->getId() ;
   }
 }
index 2037632b2dbbd41d9c396c864938f633dd1fc54f..f9dc41d3772673135ed037fc8f6382f298802e61 100644 (file)
@@ -43,7 +43,7 @@ public:
                      PortableServer::POA_ptr poa,
                      PortableServer::ObjectId * contId, 
                      const char *instanceName,
-                      const char *interfaceName);
+                      const char *interfaceName, bool withRegistry);
 
   virtual ~SIGNALSComponent_Impl();
 
@@ -60,6 +60,26 @@ private:
 
 };
 
+class SIGNALSCOMPONENTENGINE_EXPORT SIGNALSComponentEngine_SSL : public SIGNALSComponent_Impl
+{
+public:
+  SIGNALSComponentEngine_SSL( CORBA::ORB_ptr orb,
+                     PortableServer::POA_ptr poa,
+                     PortableServer::ObjectId * contId, 
+                     const char *instanceName,
+                      const char *interfaceName):SIGNALSComponent_Impl(orb,poa,contId,instanceName,interfaceName,false) { }
+};
+
+class SIGNALSCOMPONENTENGINE_EXPORT SIGNALSComponentEngine_No_SSL : public SIGNALSComponent_Impl
+{
+public:
+  SIGNALSComponentEngine_No_SSL( CORBA::ORB_ptr orb,
+                     PortableServer::POA_ptr poa,
+                     PortableServer::ObjectId * contId, 
+                     const char *instanceName,
+                      const char *interfaceName):SIGNALSComponent_Impl(orb,poa,contId,instanceName,interfaceName,true) { }
+};
+
 extern "C"
   SIGNALSCOMPONENTENGINE_EXPORT
   PortableServer::ObjectId * SIGNALSComponentEngine_factory
index 838fe98d5bf19676e5a742e2263261d3fe601931..bd2525836a82a5ad12f524820a367efe780b8e8a 100644 (file)
@@ -42,8 +42,8 @@ SubComponentEngine::SubComponentEngine( CORBA::ORB_ptr orb,
                                    PortableServer::POA_ptr poa,
                                    PortableServer::ObjectId * contId, 
                                    const char *instanceName,
-                                    const char *interfaceName) :
-  Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,true)
+                                    const char *interfaceName, bool withRegistry) :
+  Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,withRegistry)
 {
 //  MESSAGE("SubComponentEngine::SubComponentEngine activate object instanceName("
 //          << instanceName << ") interfaceName(" << interfaceName << ")" )
@@ -100,8 +100,17 @@ extern "C"
   {
     MESSAGE("SubComponentEngine_factory SubComponentEngine ("
             << instanceName << "," << interfaceName << ")");
-    SubComponentEngine * mySubComponent 
-      = new SubComponentEngine(orb, poa, contId, instanceName, interfaceName);
+    SubComponentEngine * mySubComponent = nullptr;
+    CORBA::Object_var o = poa->id_to_reference(*contId);
+    Engines::Container_var cont = Engines::Container::_narrow(o);
+    if(cont->is_SSL_mode())
+    {
+      mySubComponent = new SubComponentEngine_SSL(orb, poa, contId, instanceName, interfaceName);
+    }
+    else
+    {
+      mySubComponent = new SubComponentEngine_No_SSL(orb, poa, contId, instanceName, interfaceName);
+    }
     return mySubComponent->getId() ;
   }
 }
index ff090c40765cb124c7f5b98e12a4ef33e77bfece..1553df3a19132f3b2158b6aa0a60d9d952d64b59 100644 (file)
@@ -52,7 +52,7 @@ public:
                      PortableServer::POA_ptr poa,
                      PortableServer::ObjectId * contId, 
                      const char *instanceName,
-                      const char *interfaceName);
+                      const char *interfaceName, bool withRegistry);
 
   virtual ~SubComponentEngine();
 
@@ -66,6 +66,26 @@ private:
 
 };
 
+class SUBCOMPONENTENGINE_EXPORT SubComponentEngine_SSL :  public SubComponentEngine
+{
+public:
+  SubComponentEngine_SSL(CORBA::ORB_ptr orb,
+                     PortableServer::POA_ptr poa,
+                     PortableServer::ObjectId * contId, 
+                     const char *instanceName,
+                      const char *interfaceName):SubComponentEngine(orb,poa,contId,instanceName,interfaceName,false) { }
+};
+
+class SUBCOMPONENTENGINE_EXPORT SubComponentEngine_No_SSL :  public SubComponentEngine
+{
+public:
+  SubComponentEngine_No_SSL(CORBA::ORB_ptr orb,
+                     PortableServer::POA_ptr poa,
+                     PortableServer::ObjectId * contId, 
+                     const char *instanceName,
+                      const char *interfaceName):SubComponentEngine(orb,poa,contId,instanceName,interfaceName,true) { }
+};
+
 extern "C"
   SUBCOMPONENTENGINE_EXPORT
   PortableServer::ObjectId * SubComponentEngine_factory
index e2952bf3ec81aaa07e057debc7de835ad1264368..65a937a97d46e33bfdf6ebf7f2d52ba1392e60e9 100644 (file)
@@ -46,8 +46,8 @@ SyrComponent_Impl::SyrComponent_Impl( CORBA::ORB_ptr orb ,
                                      PortableServer::ObjectId * contId , 
                                      const char *instanceName ,
                                       const char *interfaceName ,
-                                      const bool kactivate ) :
-  Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,true) {
+                                      const bool kactivate , bool withRegistry ) :
+  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 << ")" )
@@ -331,10 +331,19 @@ SuperVisionTest::Syr_ptr SyrComponent_Impl::Init( CORBA::Long anOddInteger ) {
 #else
   Sleep(S*1000);
 #endif
-  Syr_Impl * mySyr ;
-  mySyr = new Syr_Impl( _orb , _poa, _contId,
+  Syr_Impl * mySyr = nullptr;
+  if ( this->isSSLMode() )
+  {
+    mySyr = new Syr_Impl_SSL( _orb , _poa, _contId,
+                        instanceName() , interfaceName() ,
+                        graphName() , nodeName() , anOddInteger ) ;
+  }
+  else
+  {
+    mySyr = new Syr_Impl_No_SSL( _orb , _poa, _contId,
                         instanceName() , interfaceName() ,
                         graphName() , nodeName() , anOddInteger ) ;
+  }
   SuperVisionTest::Syr_var iobject = (SuperVisionTest::Syr_var ) NULL ;
   PortableServer::ObjectId * id = mySyr->getId() ;
   CORBA::Object_var obj = _poa->id_to_reference(*id);
@@ -405,8 +414,17 @@ extern "C"
     MESSAGE("SyrComponentEngine_factory SyrComponentEngine ("
             << instanceName << "," << interfaceName << "," << _getpid() << ")");
 #endif
-    SyrComponent_Impl * mySyrComponent 
-      = new SyrComponent_Impl(orb, poa, contId, instanceName, interfaceName);
+    SyrComponent_Impl * mySyrComponent = nullptr;
+    CORBA::Object_var o = poa->id_to_reference(*contId);
+    Engines::Container_var cont = Engines::Container::_narrow(o);
+    if(cont->is_SSL_mode())
+    {
+      mySyrComponent = new SyrComponent_Impl_SSL(orb, poa, contId, instanceName, interfaceName);
+    }
+    else
+    {
+      mySyrComponent = new SyrComponent_Impl_No_SSL(orb, poa, contId, instanceName, interfaceName);
+    }
     return mySyrComponent->getId() ;
   }
 }
@@ -418,8 +436,8 @@ Syr_Impl::Syr_Impl( CORBA::ORB_ptr orb ,
                     const char * interfaceName , 
                    const char * graphName ,
                     const char * nodeName ,
-                    const CORBA::Long anOddInteger ) :
-  SyrComponent_Impl(orb, poa, contId, instanceName, interfaceName,false) {
+                    const CORBA::Long anOddInteger, bool withRegistry) :
+  SyrComponent_Impl(orb, poa, contId, instanceName, interfaceName,false,withRegistry) {
   Names( graphName , nodeName ) ;
   MESSAGE("Syr_Impl::Syr_Impl activate object instanceName("
           << instanceName << ") interfaceName(" << interfaceName << ") --> "
index 8f8a0a6a4bf479fce3e42e9016296268ec395bf0..31dd27c6d127c565f134a410f11aded106f2aea3 100644 (file)
@@ -54,7 +54,7 @@ public:
                     PortableServer::ObjectId * contId , 
                     const char *instanceName ,
                      const char *interfaceName ,
-                     const bool kactivate = true ) ;
+                     const bool kactivate, bool withRegistry ) ;
 
   virtual ~SyrComponent_Impl();
 
@@ -95,6 +95,26 @@ private:
   long _Count ;
 };
 
+class SYRCOMPONENTENGINE_EXPORT SyrComponent_Impl_No_SSL : public SyrComponent_Impl
+{
+public:
+  SyrComponent_Impl_No_SSL() { }
+  SyrComponent_Impl_No_SSL( CORBA::ORB_ptr orb ,
+                    PortableServer::POA_ptr poa ,
+                    PortableServer::ObjectId * contId , 
+                    const char *instanceName , const char *interfaceName , const bool kactivate = true ):SyrComponent_Impl(orb,poa,contId,instanceName,interfaceName,kactivate,true) { }
+};
+
+class SYRCOMPONENTENGINE_EXPORT SyrComponent_Impl_SSL : public SyrComponent_Impl
+{
+public:
+  SyrComponent_Impl_SSL() { }
+  SyrComponent_Impl_SSL( CORBA::ORB_ptr orb ,
+                    PortableServer::POA_ptr poa ,
+                    PortableServer::ObjectId * contId , 
+                    const char *instanceName , const char *interfaceName , const bool kactivate = true ):SyrComponent_Impl(orb,poa,contId,instanceName,interfaceName,kactivate,false) { }
+};
+
 class SYRCOMPONENTENGINE_EXPORT ListOfSyr_Impl :  public POA_SuperVisionTest::ListOfSyr ,
                                                    public Engines_Component_i {
 public:
@@ -139,7 +159,7 @@ public:
             const char *interfaceName , 
             const char * graphName ,
             const char * nodeName ,
-            const CORBA::Long anOddInteger );
+            const CORBA::Long anOddInteger, bool withRegistry);
 
   virtual ~Syr_Impl();
 
@@ -167,4 +187,30 @@ private:
 
 };
 
+class SYRCOMPONENTENGINE_EXPORT Syr_Impl_SSL :  public Syr_Impl
+{
+public:
+  Syr_Impl_SSL(CORBA::ORB_ptr orb ,
+           PortableServer::POA_ptr poa ,
+           PortableServer::ObjectId * contId , 
+           const char *instanceName ,
+            const char *interfaceName , 
+            const char * graphName ,
+            const char * nodeName ,
+            const CORBA::Long anOddInteger) : Syr_Impl(orb,poa,contId,instanceName,interfaceName,graphName,nodeName,anOddInteger,false) { }
+};
+
+class SYRCOMPONENTENGINE_EXPORT Syr_Impl_No_SSL :  public Syr_Impl
+{
+public:
+  Syr_Impl_No_SSL(CORBA::ORB_ptr orb ,
+           PortableServer::POA_ptr poa ,
+           PortableServer::ObjectId * contId , 
+           const char *instanceName ,
+            const char *interfaceName , 
+            const char * graphName ,
+            const char * nodeName ,
+            const CORBA::Long anOddInteger) : Syr_Impl(orb,poa,contId,instanceName,interfaceName,graphName,nodeName,anOddInteger,true) { }
+};
+
 #endif
index 28d4a1599e498c6a0ce547ba96c696e9b1b39128..3ffc7d22dc4bb12e30048759765dac636e1b742f 100644 (file)
@@ -45,8 +45,8 @@ TypesCheck_Impl::TypesCheck_Impl( CORBA::ORB_ptr orb ,
                                  PortableServer::ObjectId * contId , 
                                  const char *instanceName ,
                                   const char *interfaceName ,
-                                  const bool kactivate ) :
-  Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,true) {
+                                  const bool kactivate, bool withRegistry ) :
+  Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,withRegistry) {
   MESSAGE("TypesCheck_Impl::TypesCheck_Impl this " << hex << this << dec
           << "activate object instanceName("
           << instanceName << ") interfaceName(" << interfaceName << ")" )
@@ -159,8 +159,17 @@ extern "C"
     MESSAGE("TypesCheckEngine_factory TypesCheckEngine ("
             << instanceName << "," << interfaceName << "," << _getpid()<< ")");
 #endif
-            
-    TypesCheck_Impl * myTypesCheck  = new TypesCheck_Impl(orb, poa, contId, instanceName, interfaceName);
+    CORBA::Object_var o = poa->id_to_reference(*contId);
+    Engines::Container_var cont = Engines::Container::_narrow(o);    
+    TypesCheck_Impl * myTypesCheck  = nullptr;
+    if(cont->is_SSL_mode())
+    {
+      myTypesCheck = new TypesCheck_Impl_SSL(orb, poa, contId, instanceName, interfaceName);
+    }
+    else
+    {
+      myTypesCheck = new TypesCheck_Impl_No_SSL(orb, poa, contId, instanceName, interfaceName);
+    }
     return myTypesCheck->getId() ;
   }
 }
index 295c6ec568220471a7efd90839d53f1f1b45a67d..b9954264e9650592e9014e6d659938b1b86ee352 100644 (file)
@@ -56,7 +56,7 @@ class TYPESCHECKENGINE_EXPORT TypesCheck_Impl : public POA_SuperVisionTest::Type
                     PortableServer::ObjectId * contId , 
                     const char *instanceName ,
                      const char *interfaceName ,
-                     const bool kactivate = true ) ;
+                     const bool kactivate, bool withRegistry ) ;
 
     virtual ~TypesCheck_Impl();
 
@@ -87,6 +87,26 @@ class TYPESCHECKENGINE_EXPORT TypesCheck_Impl : public POA_SuperVisionTest::Type
 
 };
 
+class TYPESCHECKENGINE_EXPORT TypesCheck_Impl_SSL : public TypesCheck_Impl {
+  public:
+    TypesCheck_Impl_SSL( CORBA::ORB_ptr orb ,
+                    PortableServer::POA_ptr poa ,
+                    PortableServer::ObjectId * contId , 
+                    const char *instanceName ,
+                     const char *interfaceName ,
+                     const bool kactivate = true):TypesCheck_Impl(orb,poa,contId,instanceName,interfaceName,kactivate,false) { }
+};
+
+class TYPESCHECKENGINE_EXPORT TypesCheck_Impl_No_SSL : public TypesCheck_Impl {
+  public:
+    TypesCheck_Impl_No_SSL( CORBA::ORB_ptr orb ,
+                    PortableServer::POA_ptr poa ,
+                    PortableServer::ObjectId * contId , 
+                    const char *instanceName ,
+                     const char *interfaceName ,
+                     const bool kactivate = true):TypesCheck_Impl(orb,poa,contId,instanceName,interfaceName,kactivate,true) { }
+};
+
 extern "C"
   TYPESCHECKENGINE_EXPORT
   PortableServer::ObjectId * TypesCheckEngine_factory ( CORBA::ORB_ptr orb ,
index 33567f4b5401c516dbc9c6238aa2dd8fcf0e86ea..06fed2ffe97536b89d7bc13aeecd14597225e39f 100644 (file)
@@ -41,8 +41,8 @@ UndefinedSymbolComponentEngine::UndefinedSymbolComponentEngine( CORBA::ORB_ptr o
                                    PortableServer::POA_ptr poa,
                                    PortableServer::ObjectId * contId, 
                                    const char *instanceName,
-                                    const char *interfaceName) :
-  Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,true)
+                                    const char *interfaceName, bool withRegistry) :
+  Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,withRegistry)
 {
 //  MESSAGE("UndefinedSymbolComponentEngine::UndefinedSymbolComponentEngine activate object instanceName("
 //          << instanceName << ") interfaceName(" << interfaceName << ")" )
@@ -92,8 +92,17 @@ extern "C"
   {
     MESSAGE("UndefinedSymbolComponentEngine_factory UndefinedSymbolComponentEngine ("
             << instanceName << "," << interfaceName << ")");
-    UndefinedSymbolComponentEngine * myUndefinedSymbolComponent 
-      = new UndefinedSymbolComponentEngine(orb, poa, contId, instanceName, interfaceName);
+    UndefinedSymbolComponentEngine * myUndefinedSymbolComponent = nullptr;
+    CORBA::Object_var o = poa->id_to_reference(*contId);
+    Engines::Container_var cont = Engines::Container::_narrow(o);    
+    if(cont->is_SSL_mode())
+     {
+       myUndefinedSymbolComponent = new UndefinedSymbolComponentEngine_SSL(orb, poa, contId, instanceName, interfaceName);
+     }
+    else
+    {
+      myUndefinedSymbolComponent = new UndefinedSymbolComponentEngine_No_SSL(orb, poa, contId, instanceName, interfaceName);
+    }
     return myUndefinedSymbolComponent->getId() ;
   }
 }
index c8c8ee3a2326dbcf2be52384c2e6069dfe456ed3..d3d71b401627716bd4cfbf94e885c8d7a0200a0e 100644 (file)
@@ -43,7 +43,7 @@ public:
                      PortableServer::POA_ptr poa,
                      PortableServer::ObjectId * contId, 
                      const char *instanceName,
-                      const char *interfaceName);
+                      const char *interfaceName, bool withRegistry);
 
   virtual ~UndefinedSymbolComponentEngine();
 
@@ -57,6 +57,24 @@ private:
 
 };
 
+class UndefinedSymbolComponentEngine_SSL :  public UndefinedSymbolComponentEngine {
+public:
+  UndefinedSymbolComponentEngine_SSL( CORBA::ORB_ptr orb,
+                     PortableServer::POA_ptr poa,
+                     PortableServer::ObjectId * contId, 
+                     const char *instanceName,
+                      const char *interfaceName):UndefinedSymbolComponentEngine(orb,poa,contId,instanceName,interfaceName,false) { }
+};
+
+class UndefinedSymbolComponentEngine_No_SSL :  public UndefinedSymbolComponentEngine {
+public:
+  UndefinedSymbolComponentEngine_No_SSL( CORBA::ORB_ptr orb,
+                     PortableServer::POA_ptr poa,
+                     PortableServer::ObjectId * contId, 
+                     const char *instanceName,
+                      const char *interfaceName):UndefinedSymbolComponentEngine(orb,poa,contId,instanceName,interfaceName,true) { }
+};
+
 extern "C"
   PortableServer::ObjectId * UndefinedSymbolComponentEngine_factory
                                    ( CORBA::ORB_ptr orb ,