mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 10:33:20 +00:00
26 lines
850 B
OpenEdge ABL
26 lines
850 B
OpenEdge ABL
#include "mapping_undefine.i"
|
|
#define SHAPE(T) \
|
|
if (!processed && l->as<IfcSchema::T>()) { \
|
|
processed = true; \
|
|
try { \
|
|
if ( convert(l->as<IfcSchema::T>(),r) ) { \
|
|
success = true; \
|
|
} \
|
|
} catch (const std::exception& e) { \
|
|
Logger::Message(Logger::LOG_ERROR, std::string(e.what()) + "\nFailed to convert:", l); \
|
|
return false; \
|
|
} catch (const Standard_Failure& f) { \
|
|
if (f.GetMessageString() && strlen(f.GetMessageString())) \
|
|
Logger::Message(Logger::LOG_ERROR, std::string("Error in: ") + f.GetMessageString() + "\nFailed to convert:", l); \
|
|
else \
|
|
Logger::Message(Logger::LOG_ERROR, "Failed to convert:", l); \
|
|
return false; \
|
|
} \
|
|
if (!success) { \
|
|
Logger::Message(Logger::LOG_ERROR,"Failed to convert:",l); \
|
|
return false; \
|
|
} \
|
|
}
|
|
#include "mapping_define_missing.i"
|
|
|
|
#include "mapping.i" |