summaryrefslogtreecommitdiff
path: root/pcl
diff options
context:
space:
mode:
authorLars Buitinck <l.buitinck@esciencecenter.nl>2014-07-07 22:37:36 +0200
committerLars Buitinck <l.buitinck@esciencecenter.nl>2014-07-07 22:37:36 +0200
commit81e38e314cf00d99b44a46f818d4738562e04892 (patch)
treeec637543fa458a8fcbb3653ce730221495b4bfb9 /pcl
parentda50cdd5870dcaa9e2743dd4ab32f9a4656e371f (diff)
"except +" on I/O functions
Translates their exceptions to RuntimeError. Not pretty, but better than abort(). Needs a unit test.
Diffstat (limited to 'pcl')
-rw-r--r--pcl/pcl_defs.pxd12
1 files changed, 7 insertions, 5 deletions
diff --git a/pcl/pcl_defs.pxd b/pcl/pcl_defs.pxd
index 6b76616..19452c1 100644
--- a/pcl/pcl_defs.pxd
+++ b/pcl/pcl_defs.pxd
@@ -128,15 +128,17 @@ ctypedef PointIndices PointIndices_t
ctypedef shared_ptr[PointIndices] PointIndicesPtr_t
cdef extern from "pcl/io/pcd_io.h" namespace "pcl::io":
- int load(string file_name, PointCloud[PointXYZ] &cloud) nogil
- int loadPCDFile(string file_name, PointCloud[PointXYZ] &cloud) nogil
+ int load(string file_name, PointCloud[PointXYZ] &cloud) nogil except +
+ int loadPCDFile(string file_name,
+ PointCloud[PointXYZ] &cloud) nogil except +
int savePCDFile(string file_name, PointCloud[PointXYZ] &cloud,
- bool binary_mode) nogil
+ bool binary_mode) nogil except +
cdef extern from "pcl/io/ply_io.h" namespace "pcl::io":
- int loadPLYFile(string file_name, PointCloud[PointXYZ] &cloud) nogil
+ int loadPLYFile(string file_name,
+ PointCloud[PointXYZ] &cloud) nogil except +
int savePLYFile(string file_name, PointCloud[PointXYZ] &cloud,
- bool binary_mode) nogil
+ bool binary_mode) nogil except +
#http://dev.pointclouds.org/issues/624
#cdef extern from "pcl/io/ply_io.h" namespace "pcl::io":