Files
IfcOpenShell/src/ifcgeom/IfcRegisterConvertShapes.h
T

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

18 lines
641 B
C++
Raw Normal View History

#include "IfcRegisterUndef.h"
#define SHAPES(T) \
2017-12-18 15:25:09 +01:00
if ( l->declaration().is(IfcSchema::T::Class()) ) { \
try { \
2017-12-18 15:25:09 +01:00
return convert((IfcSchema::T*)l,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; \
}
#include "IfcRegisterDef.h"
#include "IfcRegister.h"