Salome HOME
Fix missing returns.
[modules/yacs.git] / Demo / echoSrv.cxx
index e4752614fdb6441eebd417c0011f59ce0e70d213..be023b2e2795803cea990f6e9030114dafdac616 100644 (file)
@@ -1,3 +1,22 @@
+// Copyright (C) 2006-2021  CEA/DEN, EDF R&D
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// 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/ or email : webmaster.salome@opencascade.com
+//
+
 #include <time.h>
 
 #include <echo.hh>
@@ -5,7 +24,7 @@
 #include <iostream>
 using namespace std;
 
-#define _DEVDEBUG_
+//#define _DEVDEBUG_
 #ifdef _DEVDEBUG_
 #define MYDEBTRACE {std::cerr << __FILE__ << " [" << __LINE__ << "] : ";}
 #define DEBTRACE(msg) {MYDEBTRACE; std::cerr<<msg<<std::endl<<std::flush;}
@@ -72,7 +91,7 @@ public:
   inline Echo_i() {}
   virtual ~Echo_i() {}
   virtual char* echoString(const char* mesg);
-  CORBA::Long echoLong(CORBA::Long i) throw(eo::SALOME_Exception);
+  CORBA::Long echoLong(CORBA::Long i);
   void echoDouble(CORBA::Double i,CORBA::Double& j) ;
   void echoDoubleVec(const eo::DoubleVec& i,eo::DoubleVec_out j) ;
   void echoDoubleVecVec(const eo::DoubleVecVec&, eo::DoubleVecVec_out);
@@ -173,7 +192,7 @@ void Echo_i::echoDoubleVecVec(const eo::DoubleVecVec& in, eo::DoubleVecVec_out o
   out=new eo::DoubleVecVec(in);
 }
 
-CORBA::Long Echo_i::echoLong(CORBA::Long i ) throw(eo::SALOME_Exception) 
+CORBA::Long Echo_i::echoLong(CORBA::Long i )
 {
   DEBTRACE("Echo_i::echoLong " << i);
   CORBA::Long j=i;