2012-07-19 18:26:47 +00:00
|
|
|
#include "IfcRegisterUndef.h"
|
2011-07-25 14:56:40 +00:00
|
|
|
#define SHAPE(T) \
|
2017-12-18 15:25:09 +01:00
|
|
|
if ( !processed && l->declaration().is(IfcSchema::T::Class()) ) { \
|
2013-11-24 15:44:27 +00:00
|
|
|
processed = true; \
|
2011-07-25 14:56:40 +00:00
|
|
|
try { \
|
2017-12-18 15:25:09 +01:00
|
|
|
if ( convert((IfcSchema::T*)l,r) ) { \
|
2013-11-24 15:44:27 +00:00
|
|
|
success = true; \
|
2011-10-12 16:43:29 +00:00
|
|
|
} \
|
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
|
|
|
return false; \
|
|
|
|
|
} catch (const Standard_Failure& f) { \
|
2016-10-25 10:11:14 +02:00
|
|
|
if (f.GetMessageString() && strlen(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; \
|
|
|
|
|
} \
|
|
|
|
|
if (!success) { \
|
2017-12-11 15:07:40 +01:00
|
|
|
Logger::Message(Logger::LOG_ERROR,"Failed to convert:",l); \
|
2013-11-24 15:44:27 +00:00
|
|
|
return false; \
|
|
|
|
|
} \
|
2011-07-25 14:56:40 +00:00
|
|
|
}
|
|
|
|
|
#include "IfcRegisterDef.h"
|
|
|
|
|
|
|
|
|
|
#include "IfcRegister.h"
|