Salome HOME
#18963 Minimize compiler warnings
[modules/kernel.git] / src / DSC / DSC_Basic / DSC_interface.hxx
index 5864c97c4a36c58eadad124a86011ddebe44831b..bbdbcd87f1dea89ff17c8237fcd66fa8a9c2b18e 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2020  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
@@ -52,36 +52,25 @@ public:
    */
   virtual void add_provides_port(Ports::Port_ptr ref, 
                                  const char* provides_port_name,
-                                 Ports::PortProperties_ptr port_prop) 
-    throw (Engines::DSC::PortAlreadyDefined,
-           Engines::DSC::NilPort,
-           Engines::DSC::BadProperty);
+                                 Ports::PortProperties_ptr port_prop);
 
   /*!
    * \see Engines::DSC::add_uses_port
    */
   virtual void add_uses_port(const char* repository_id, 
                              const char* uses_port_name,
-                             Ports::PortProperties_ptr port_prop)
-    throw (Engines::DSC::PortAlreadyDefined,
-           Engines::DSC::BadProperty);
+                             Ports::PortProperties_ptr port_prop);
 
   /*!
    * \see Engines::DSC::get_provides_port
    */
   virtual Ports::Port_ptr get_provides_port(const char* provides_port_name,
-                                            const CORBA::Boolean connection_error) 
-    throw (Engines::DSC::PortNotDefined,
-           Engines::DSC::PortNotConnected,
-           Engines::DSC::BadPortType);
+                                            const CORBA::Boolean connection_error);
 
   /*!
    * \see Engines::DSC::get_uses_port
    */
-  virtual Engines::DSC::uses_port * get_uses_port(const char* uses_port_name)
-    throw (Engines::DSC::PortNotDefined,
-           Engines::DSC::PortNotConnected,
-           Engines::DSC::BadPortType);
+  virtual Engines::DSC::uses_port * get_uses_port(const char* uses_port_name);
 
   /*!
    * \see Engines::DSC::connect_provides_port
@@ -91,8 +80,7 @@ public:
    * port doesn't know its uses ports references. It's framework or application role
    * to manage connections between ports.
    */
-  virtual void connect_provides_port(const char* provides_port_name)
-    throw (Engines::DSC::PortNotDefined);
+  virtual void connect_provides_port(const char* provides_port_name);
 
   /*!
    * \see Engines::DSC::connect_uses_port
@@ -101,16 +89,12 @@ public:
    * port how much provides ports are connected with.
    */
   virtual void connect_uses_port(const char* uses_port_name,
-                                 Ports::Port_ptr provides_port_ref) 
-  throw (Engines::DSC::PortNotDefined,
-         Engines::DSC::BadPortType,
-         Engines::DSC::NilPort);
+                                 Ports::Port_ptr provides_port_ref);
 
   /*!
    * \see Engines::DSC::is_connected
    */
-  virtual CORBA::Boolean is_connected(const char* port_name)
-    throw (Engines::DSC::PortNotDefined);
+  virtual CORBA::Boolean is_connected(const char* port_name);
 
    /*!
    * \see Engines::DSC::disconnect_provides_port
@@ -121,9 +105,7 @@ public:
    * to manage connections between ports.
    */
   virtual void disconnect_provides_port(const char* provides_port_name,
-                                        const Engines::DSC::Message message)
-    throw (Engines::DSC::PortNotDefined,
-           Engines::DSC::PortNotConnected);
+                                        const Engines::DSC::Message message);
 
    /*!
    * \see Engines::DSC::disconnect_uses_port
@@ -138,16 +120,12 @@ public:
    */
   virtual void disconnect_uses_port(const char* uses_port_name,
                                     Ports::Port_ptr provides_port_ref,
-                                    const Engines::DSC::Message message)
-    throw (Engines::DSC::PortNotDefined,
-           Engines::DSC::PortNotConnected,
-           Engines::DSC::BadPortReference);
+                                    const Engines::DSC::Message message);
 
   /*!
    * \see Engines::DSC::get_port_properties
    */
-  virtual Ports::PortProperties_ptr get_port_properties(const char* port_name)
-    throw (Engines::DSC::PortNotDefined);
+  virtual Ports::PortProperties_ptr get_port_properties(const char* port_name);
 
   static void writeEvent(const char* request,const std::string& containerName, const char* instance_name,
                          const char* port_name, const char* error, const char* message);