|
From: <mk...@us...> - 2003-03-20 18:34:19
|
Update of /cvsroot/csp/APPLICATIONS/SimData/Include/SimData
In directory sc8-pr-cvs1:/tmp/cvs-serv17571/Include/SimData
Modified Files:
cSimData.i
Log Message:
See CHANGES.current
Index: cSimData.i
===================================================================
RCS file: /cvsroot/csp/APPLICATIONS/SimData/Include/SimData/cSimData.i,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** cSimData.i 18 Mar 2003 10:04:04 -0000 1.3
--- cSimData.i 20 Mar 2003 17:53:41 -0000 1.4
***************
*** 1,3 ****
! %module cSimData
%{
--- 1,23 ----
! /* SimDataCSP: Data Infrastructure for Simulations
! * Copyright (C) 2002 Mark Rose <tm...@st...>
! *
! * This file is part of SimDataCSP.
! *
! * This program is free software; you can redistribute it and/or
! * modify it under the terms of the GNU General Public License
! * as published by the Free Software Foundation; either version 2
! * of the License, or (at your option) any later version.
! *
! * This program 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 General Public License for more details.
! *
! * You should have received a copy of the GNU General Public License
! * along with this program; if not, write to the Free Software
! * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
! */
!
! %module SimData.cSimData
%{
***************
*** 7,10 ****
--- 27,31 ----
#include <SimData/DataArchive.h>
#include <SimData/InterfaceRegistry.h>
+ #include <SimData/Version.h>
%}
***************
*** 15,18 ****
--- 36,40 ----
%include "SimData/ns-simdata.h"
%include "SimData/Export.h"
+ %include "SimData/Version.h"
%include "SimData/Log.i"
***************
*** 22,29 ****
%feature("polymorphic:except") {
! if ($error != NULL) {
! printf("got a python exception\n");
! throw SIMDATA(PythonException)();
! }
}
--- 44,51 ----
%feature("polymorphic:except") {
! if ($error != NULL) {
! printf("got a python exception\n");
! throw SIMDATA(PythonException)();
! }
}
***************
*** 34,45 ****
%exception {
try {
! $action
} catch (SIMDATA(PythonException) &e) {
! printf("SWIG: passing Python exception back\n");
! return NULL;
} catch (...) {
! printf("SWIG: passing C++ exception back\n");
! return NULL;
! }
}
--- 56,71 ----
%exception {
try {
! $action
} catch (SIMDATA(PythonException) &e) {
! printf("SWIG: passing Python exception back\n");
! return NULL;
! } catch (SIMDATA(Exception) e) {
! printf("SWIG: caught a SimData Exception\n");
! e.details();
! return NULL;
} catch (...) {
! printf("SWIG: passing C++ exception back\n");
! return NULL;
! }
}
***************
*** 47,51 ****
%include "SimData/InterfaceRegistry.i"
%exception;
-
-
-
--- 73,74 ----
|