Salome HOME
Fix TestExportToGEOM.py case in SSL mode
[modules/yacs.git] / src / SALOMEDS / SALOMEDS_Driver_i.hxx
index 3a2a211db8f34b5b129ed82d13342320f08f2fc0..8ba6a897f98db7981733f99ba942338746a93b1b 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2021  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -98,8 +98,7 @@ public:
                                 int theObjectID,
                                 const SALOMEDSImpl_SObject& theObject);
 
-  virtual SALOMEDSImpl_TMPFile* DumpPython(SALOMEDSImpl_Study* theStudy, 
-                                           bool isPublished, 
+  virtual SALOMEDSImpl_TMPFile* DumpPython(bool isPublished,
                                            bool isMultiFile,
                                            bool& isValidScript,
                                            long& theStreamLength);
@@ -112,13 +111,17 @@ class SALOMEDS_DriverFactory_i : public virtual SALOMEDSImpl_DriverFactory
 {
 protected:  
   CORBA::ORB_var        _orb;
-  SALOME_NamingService* _name_service;
+  SALOME_NamingService_Abstract* _name_service = nullptr;
 
 public:
   
-  SALOMEDS_DriverFactory_i(CORBA::ORB_ptr theORB);
+  SALOMEDS_DriverFactory_i(CORBA::ORB_ptr theORB, bool isNSAvail = true);
+  
+  SALOMEDS_DriverFactory_i(CORBA::ORB_ptr theORB, SALOME_NamingService_Abstract *ns);
+
+  SALOME_NamingService_Abstract *getNS() const { return _name_service; }
 
-  ~SALOMEDS_DriverFactory_i();
+  virtual ~SALOMEDS_DriverFactory_i();
    
   virtual SALOMEDSImpl_Driver* GetDriverByType(const std::string& theComponentType);