mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 02:07:36 +00:00
#747 Apply typemaps and checks to spf header
This commit is contained in:
+22
-1
@@ -70,7 +70,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
%module ifcopenshell_wrapper %{
|
// Include headers for the typemaps to function. This set of includes,
|
||||||
|
// can probably be reduced, but for now it's identical to the includes
|
||||||
|
// of the module definition below.
|
||||||
|
%{
|
||||||
#include "../ifcgeom_schema_agnostic/IfcGeomIterator.h"
|
#include "../ifcgeom_schema_agnostic/IfcGeomIterator.h"
|
||||||
#include "../ifcgeom_schema_agnostic/Serialization.h"
|
#include "../ifcgeom_schema_agnostic/Serialization.h"
|
||||||
#include "../ifcgeom/IfcGeomTree.h"
|
#include "../ifcgeom/IfcGeomTree.h"
|
||||||
@@ -97,5 +100,23 @@
|
|||||||
|
|
||||||
%include "utils/typemaps_out.i"
|
%include "utils/typemaps_out.i"
|
||||||
|
|
||||||
|
%module ifcopenshell_wrapper %{
|
||||||
|
#include "../ifcgeom_schema_agnostic/IfcGeomIterator.h"
|
||||||
|
#include "../ifcgeom_schema_agnostic/Serialization.h"
|
||||||
|
#include "../ifcgeom/IfcGeomTree.h"
|
||||||
|
|
||||||
|
#include "../ifcparse/Ifc2x3.h"
|
||||||
|
#include "../ifcparse/Ifc4.h"
|
||||||
|
#include "../ifcparse/Ifc4x1.h"
|
||||||
|
#include "../ifcparse/Ifc4x2.h"
|
||||||
|
#include "../ifcparse/Ifc4x3_rc1.h"
|
||||||
|
#include "../ifcparse/IfcBaseClass.h"
|
||||||
|
#include "../ifcparse/IfcFile.h"
|
||||||
|
#include "../ifcparse/IfcSchema.h"
|
||||||
|
#include "../ifcparse/utils.h"
|
||||||
|
|
||||||
|
#include <BRepTools_ShapeSet.hxx>
|
||||||
|
%}
|
||||||
|
|
||||||
%include "IfcGeomWrapper.i"
|
%include "IfcGeomWrapper.i"
|
||||||
%include "IfcParseWrapper.i"
|
%include "IfcParseWrapper.i"
|
||||||
|
|||||||
@@ -25,7 +25,13 @@
|
|||||||
}
|
}
|
||||||
$1 = python_sequence_as_vector<template_type>($input);
|
$1 = python_sequence_as_vector<template_type>($input);
|
||||||
}
|
}
|
||||||
|
%typemap(typecheck,precedence=SWIG_TYPECHECK_INTEGER) std::vector<template_type> {
|
||||||
|
$1 = check_aggregate_of_type($input, get_python_type<template_type>()) ? 1 : 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
%typemap(typecheck,precedence=SWIG_TYPECHECK_INTEGER) const std::vector<template_type>& {
|
||||||
|
$1 = check_aggregate_of_type($input, get_python_type<template_type>()) ? 1 : 0;
|
||||||
|
}
|
||||||
%typemap(arginit) const std::vector<template_type>& {
|
%typemap(arginit) const std::vector<template_type>& {
|
||||||
$1 = new std::vector<template_type>();
|
$1 = new std::vector<template_type>();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user