mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 23:36:20 +00:00
gcc compatibility
This commit is contained in:
@@ -22,49 +22,63 @@
|
|||||||
$result = Py_None;
|
$result = Py_None;
|
||||||
} else {
|
} else {
|
||||||
switch(type) {
|
switch(type) {
|
||||||
case IfcUtil::Argument_INT:
|
case IfcUtil::Argument_INT: {
|
||||||
$result = pythonize((int) arg);
|
int v = arg;
|
||||||
break;
|
$result = pythonize(v);
|
||||||
case IfcUtil::Argument_BOOL:
|
break; }
|
||||||
$result = pythonize((bool) arg);
|
case IfcUtil::Argument_BOOL: {
|
||||||
break;
|
bool v = arg;
|
||||||
case IfcUtil::Argument_DOUBLE:
|
$result = pythonize(v);
|
||||||
$result = pythonize((double) arg);
|
break; }
|
||||||
break;
|
case IfcUtil::Argument_DOUBLE: {
|
||||||
|
double v = arg;
|
||||||
|
$result = pythonize(v);
|
||||||
|
break; }
|
||||||
case IfcUtil::Argument_ENUMERATION:
|
case IfcUtil::Argument_ENUMERATION:
|
||||||
case IfcUtil::Argument_STRING:
|
case IfcUtil::Argument_STRING: {
|
||||||
$result = pythonize((std::string) arg);
|
std::string v = arg;
|
||||||
break;
|
$result = pythonize(v);
|
||||||
case IfcUtil::Argument_BINARY:
|
break; }
|
||||||
$result = pythonize((boost::dynamic_bitset<>) arg);
|
case IfcUtil::Argument_BINARY: {
|
||||||
break;
|
boost::dynamic_bitset<> v = arg;
|
||||||
case IfcUtil::Argument_AGGREGATE_OF_INT:
|
$result = pythonize(v);
|
||||||
$result = pythonize_vector((std::vector<int>) arg);
|
break; }
|
||||||
break;
|
case IfcUtil::Argument_AGGREGATE_OF_INT: {
|
||||||
case IfcUtil::Argument_AGGREGATE_OF_DOUBLE:
|
std::vector<int> v = arg;
|
||||||
$result = pythonize_vector((std::vector<double>) arg);
|
$result = pythonize_vector(v);
|
||||||
break;
|
break; }
|
||||||
case IfcUtil::Argument_AGGREGATE_OF_STRING:
|
case IfcUtil::Argument_AGGREGATE_OF_DOUBLE: {
|
||||||
$result = pythonize_vector((std::vector<std::string>) arg);
|
std::vector<double> v = arg;
|
||||||
break;
|
$result = pythonize_vector(v);
|
||||||
case IfcUtil::Argument_ENTITY_INSTANCE:
|
break; }
|
||||||
$result = pythonize((IfcUtil::IfcBaseClass*) arg);
|
case IfcUtil::Argument_AGGREGATE_OF_STRING: {
|
||||||
break;
|
std::vector<std::string> v = arg;
|
||||||
case IfcUtil::Argument_AGGREGATE_OF_ENTITY_INSTANCE:
|
$result = pythonize_vector(v);
|
||||||
$result = pythonize((IfcEntityList::ptr) arg);
|
break; }
|
||||||
break;
|
case IfcUtil::Argument_ENTITY_INSTANCE: {
|
||||||
case IfcUtil::Argument_AGGREGATE_OF_BINARY:
|
IfcUtil::IfcBaseClass* v = arg;
|
||||||
$result = pythonize_vector((std::vector< boost::dynamic_bitset<> >) arg);
|
$result = pythonize(v);
|
||||||
break;
|
break; }
|
||||||
case IfcUtil::Argument_AGGREGATE_OF_AGGREGATE_OF_INT:
|
case IfcUtil::Argument_AGGREGATE_OF_ENTITY_INSTANCE: {
|
||||||
$result = pythonize_vector2((std::vector< std::vector<int> >) arg);
|
IfcEntityList::ptr v = arg;
|
||||||
break;
|
$result = pythonize(v);
|
||||||
case IfcUtil::Argument_AGGREGATE_OF_AGGREGATE_OF_DOUBLE:
|
break; }
|
||||||
$result = pythonize_vector2((std::vector< std::vector<double> >) arg);
|
case IfcUtil::Argument_AGGREGATE_OF_BINARY: {
|
||||||
break;
|
std::vector< boost::dynamic_bitset<> > v = arg;
|
||||||
case IfcUtil::Argument_AGGREGATE_OF_AGGREGATE_OF_ENTITY_INSTANCE:
|
$result = pythonize_vector(v);
|
||||||
$result = pythonize((IfcEntityListList::ptr) arg);
|
break; }
|
||||||
break;
|
case IfcUtil::Argument_AGGREGATE_OF_AGGREGATE_OF_INT: {
|
||||||
|
std::vector< std::vector<int> > v = arg;
|
||||||
|
$result = pythonize_vector2(v);
|
||||||
|
break; }
|
||||||
|
case IfcUtil::Argument_AGGREGATE_OF_AGGREGATE_OF_DOUBLE: {
|
||||||
|
std::vector< std::vector<double> > v = arg;
|
||||||
|
$result = pythonize_vector2(v);
|
||||||
|
break; }
|
||||||
|
case IfcUtil::Argument_AGGREGATE_OF_AGGREGATE_OF_ENTITY_INSTANCE: {
|
||||||
|
IfcEntityListList::ptr v = arg;
|
||||||
|
$result = pythonize(v);
|
||||||
|
break; }
|
||||||
case IfcUtil::Argument_UNKNOWN:
|
case IfcUtil::Argument_UNKNOWN:
|
||||||
default:
|
default:
|
||||||
SWIG_exception(SWIG_RuntimeError,"Unknown attribute type");
|
SWIG_exception(SWIG_RuntimeError,"Unknown attribute type");
|
||||||
|
|||||||
Reference in New Issue
Block a user