Text archives Help
- From: sparker@sci.utah.edu
- To: manta@sci.utah.edu
- Subject: [Manta] r1873 - trunk/SwigInterface
- Date: Tue, 27 Nov 2007 08:21:19 -0700 (MST)
Author: sparker
Date: Tue Nov 27 08:20:57 2007
New Revision: 1873
Modified:
trunk/SwigInterface/manta.h
trunk/SwigInterface/manta.i
trunk/SwigInterface/mantainterface.i
Log:
First stab at updating the swig stuff for the namespace changes. I am going
to need James' help for the
final dose of voodoo.
Modified: trunk/SwigInterface/manta.h
==============================================================================
--- trunk/SwigInterface/manta.h (original)
+++ trunk/SwigInterface/manta.h Tue Nov 27 08:20:57 2007
@@ -4,9 +4,7 @@
#include <Engine/Factory/Factory.h>
#include <Engine/Factory/RegisterKnownComponents.h>
-#include <sgi_stl_warnings_off.h>
#include <string>
-#include <sgi_stl_warnings_on.h>
namespace Manta {
using namespace std;
Modified: trunk/SwigInterface/manta.i
==============================================================================
--- trunk/SwigInterface/manta.i (original)
+++ trunk/SwigInterface/manta.i Tue Nov 27 08:20:57 2007
@@ -85,8 +85,8 @@
%}
%manta_Release_PythonGIL(Manta::SyncDisplay::waitOnFrameReady);
-%manta_SCIRun_Exception(Manta::PureOpenGLDisplay::PureOpenGLDisplay);
-%manta_SCIRun_Exception(Manta::PureOpenGLDisplay::setMode);
+%manta_Manta_Exception(Manta::PureOpenGLDisplay::PureOpenGLDisplay);
+%manta_Manta_Exception(Manta::PureOpenGLDisplay::setMode);
%include <Engine/Display/SyncDisplay.h>
%include <Engine/Display/OpenGLDisplay.h>
@@ -299,11 +299,11 @@
/////////////////////////////////////////////////
// The Array Containers
%{
-#include <SCIRun/Core/Containers/Array1.h>
+#include <Core/Containers/Array1.h>
%}
// Wrap the class here to get a customized interface to the class.
-namespace SCIRun {
+namespace Manta {
template<class T>
class Array1 {
public:
@@ -322,7 +322,7 @@
};
}
-%template(Array1_ObjectP) SCIRun::Array1<Manta::Object*>;
+%template(Array1_ObjectP) Manta::Array1<Manta::Object*>;
///////////////////////////////////////////////////////
// Engine Factory
Modified: trunk/SwigInterface/mantainterface.i
==============================================================================
--- trunk/SwigInterface/mantainterface.i (original)
+++ trunk/SwigInterface/mantainterface.i Tue Nov 27 08:20:57 2007
@@ -72,16 +72,15 @@
// Exceptions
%{
-#include <Core/Exceptions/share.h>
#include <Core/Exceptions/Exception.h>
#include <Core/Exceptions/IllegalArgument.h>
#include <Core/Exceptions/IllegalValue.h>
#include <Core/Exceptions/BadPrimitive.h>
#include <Core/Exceptions/InvalidState.h>
+#undef InvalidState
#include <Core/Exceptions/InputError.h>
%}
-%include <Core/Exceptions/share.h>
%include <Core/Exceptions/Exception.h>
%include <Core/Exceptions/IllegalArgument.h>
%include <Core/Exceptions/BadPrimitive.h>
@@ -92,7 +91,7 @@
%exception Function {
try {
$action
- } catch(SCIRun::Exception& e) {
+ } catch(Manta::Exception& e) {
SWIG_exception(SWIG_ValueError, e.message());
} catch(...) {
SWIG_exception(SWIG_RuntimeError, "Unknown exception");
@@ -113,11 +112,11 @@
}
%enddef
-%define %manta_SCIRun_Exception(Function)
+%define %manta_Manta_Exception(Function)
%exception Function {
try {
$action
- } catch(SCIRun::Exception& e) {
+ } catch(Manta::Exception& e) {
SWIG_exception(SWIG_ValueError, e.message());
} catch(...) {
SWIG_exception(SWIG_RuntimeError, "Unknown exception");
@@ -468,23 +467,23 @@
////////////////////////////////////////////////
// Thread stuff
%{
-#include <SCIRun/Core/Thread/Thread.h>
-#include <SCIRun/Core/Thread/Runnable.h>
-#include <SCIRun/Core/Thread/Semaphore.h>
+#include <Core/Thread/Thread.h>
+#include <Core/Thread/Runnable.h>
+#include <Core/Thread/Semaphore.h>
%}
// yield is a "future" reserved word for some versions of python.
// This renames it to be something else.
%rename(yieldProcess) yield;
-%include <SCIRun/Core/Thread/Thread.h>
+%include <Core/Thread/Thread.h>
%rename(yield) yield;
-%manta_Release_PythonGIL(SCIRun::Semaphore::down);
-%include <SCIRun/Core/Thread/Semaphore.h>
+%manta_Release_PythonGIL(Manta::Semaphore::down);
+%include <Core/Thread/Semaphore.h>
-namespace SCIRun {
+namespace Manta {
// We are going to wrap these classes here to avoid having to wrap
// anything more related to Runnable.
class Runnable
@@ -493,7 +492,7 @@
virtual void run()=0; // pure virtual means no constructor
virtual ~Runnable(); // protected virtual destructor, means no calls to
destroy it.
};
-} // end namespace SCIRun
+} // end namespace Manta
////////////////////////////////////////////////
- [Manta] r1873 - trunk/SwigInterface, sparker, 11/27/2007
Archive powered by MHonArc 2.6.16.