Salome HOME
Added methods getErrorCode and isDone. Changed the error treatment. Now in the case...
[samples/calculator.git] / src / CALCULATOR / CALCULATOR.hxx
index d2b1d1e2dfc2ccd77e8d934c6f967360ed1d1be3..b714af96641f9741bc99b7090f704ec3b48e3652 100644 (file)
@@ -14,7 +14,7 @@
 // License along with this library; if not, write to the Free Software
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
-// See http://www.salome-platform.org/
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 #ifndef _CALCULATOR_HXX_
 #define _CALCULATOR_HXX_
@@ -43,11 +43,15 @@ public:
     CORBA::Double norm2(SALOME_MED::FIELDDOUBLE_ptr field1);
     CORBA::Double normL1(SALOME_MED::FIELDDOUBLE_ptr field1);
     SALOME_MED::FIELDDOUBLE_ptr applyLin(SALOME_MED::FIELDDOUBLE_ptr field1,CORBA::Double a,CORBA::Double b);
-    SALOME_MED::FIELDDOUBLE_ptr add(SALOME_MED::FIELDDOUBLE_ptr field1, SALOME_MED::FIELDDOUBLE_ptr field2)
-       throw ( SALOME::SALOME_Exception );
+    SALOME_MED::FIELDDOUBLE_ptr add(SALOME_MED::FIELDDOUBLE_ptr field1, SALOME_MED::FIELDDOUBLE_ptr field2);
     void printField(SALOME_MED::FIELDDOUBLE_ptr field);
     void cloneField(SALOME_MED::FIELDDOUBLE_ptr field, SALOME_MED::FIELDDOUBLE_out clone1, SALOME_MED::FIELDDOUBLE_out clone2,
                    SALOME_MED::FIELDDOUBLE_out clone3, SALOME_MED::FIELDDOUBLE_out clone4);
+       CORBA::Boolean isDone();
+       CALCULATOR_ORB::ErrorCode getErrorCode();
+
+protected:
+       CALCULATOR_ORB::ErrorCode _errorCode;
 };