Files
IfcOpenShell/src/ifcgeom/mapping_shapes.i
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
625 B
OpenEdge ABL
Raw Normal View History

2021-11-05 16:54:16 +01:00
#include "mapping_undefine.i"
#define SHAPES(T) \
2021-09-06 18:52:37 +02:00
if (l->as<IfcSchema::T>()) { \
try { \
2021-09-06 18:52:37 +02:00
return convert(l->as<IfcSchema::T>(), r); \
2016-06-12 11:22:08 +02:00
} catch (const std::exception& e) { \
2017-12-11 15:07:40 +01:00
Logger::Message(Logger::LOG_ERROR, std::string(e.what()) + "\nFailed to convert:", l); \
2016-06-12 11:22:08 +02:00
} catch (const Standard_Failure& f) { \
if (f.GetMessageString()) \
2017-12-11 15:07:40 +01:00
Logger::Message(Logger::LOG_ERROR, std::string("Error in: ") + f.GetMessageString() + "\nFailed to convert:", l); \
2016-06-12 11:22:08 +02:00
else \
2017-12-11 15:07:40 +01:00
Logger::Message(Logger::LOG_ERROR, "Failed to convert:", l); \
2016-06-12 11:22:08 +02:00
} \
return false; \
}
2021-11-05 16:54:16 +01:00
#include "mapping_define_missing.i"
2021-11-05 16:54:16 +01:00
#include "mapping.i"