2012-07-19 18:26:47 +00:00
|
|
|
#include "IfcRegisterUndef.h"
|
2011-10-23 17:11:06 +00:00
|
|
|
#define SHAPES(T) \
|
|
|
|
|
if ( l->is(T::Class()) ) { \
|
2011-12-29 14:45:32 +00:00
|
|
|
try { \
|
2014-12-19 12:14:36 +00:00
|
|
|
return convert((T*)l,r); \
|
2016-06-12 11:22:08 +02:00
|
|
|
} catch (const std::exception& e) { \
|
|
|
|
|
Logger::Message(Logger::LOG_ERROR, std::string(e.what()) + "\nFailed to convert:", l->entity); \
|
|
|
|
|
} catch (const Standard_Failure& f) { \
|
|
|
|
|
if (f.GetMessageString()) \
|
|
|
|
|
Logger::Message(Logger::LOG_ERROR, std::string("Error in: ") + f.GetMessageString() + "\nFailed to convert:", l->entity); \
|
|
|
|
|
else \
|
|
|
|
|
Logger::Message(Logger::LOG_ERROR, "Failed to convert:", l->entity); \
|
|
|
|
|
} \
|
2011-12-29 14:45:32 +00:00
|
|
|
return false; \
|
2011-10-23 17:11:06 +00:00
|
|
|
}
|
|
|
|
|
#include "IfcRegisterDef.h"
|
|
|
|
|
|
|
|
|
|
#include "IfcRegister.h"
|