2017-12-19 20:24:00 +01:00
|
|
|
#include "IfcGeomIteratorImplementation.h"
|
2017-12-20 17:09:42 +01:00
|
|
|
#include "../ifcgeom_schema_agnostic/IteratorImplementation.h"
|
2017-12-19 20:24:00 +01:00
|
|
|
|
|
|
|
|
namespace IfcGeom {
|
2018-07-07 21:14:27 +02:00
|
|
|
template class MAKE_TYPE_NAME(IteratorImplementation_)<float, float>;
|
|
|
|
|
template class MAKE_TYPE_NAME(IteratorImplementation_)<float, double>;
|
|
|
|
|
template class MAKE_TYPE_NAME(IteratorImplementation_)<double, double>;
|
2017-12-19 20:24:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#define MAKE_INIT_FN__(a, b) init_ ## a ## b
|
|
|
|
|
#define MAKE_INIT_FN_(a, b) MAKE_INIT_FN__(a, b)
|
|
|
|
|
#define MAKE_INIT_FN(t) MAKE_INIT_FN_(t, IfcSchema)
|
|
|
|
|
|
2017-12-28 16:33:07 +01:00
|
|
|
namespace {
|
2018-07-07 21:14:27 +02:00
|
|
|
template <typename P, typename PP>
|
2018-08-29 12:55:27 +02:00
|
|
|
struct MAKE_TYPE_NAME(factory_t) {
|
2019-07-03 12:10:27 +02:00
|
|
|
IfcGeom::IteratorImplementation<P, PP>* operator()(const IfcGeom::IteratorSettings& settings, IfcParse::IfcFile* file, const std::vector<IfcGeom::filter_t>& filters, size_t num_threads) const {
|
|
|
|
|
return new IfcGeom::MAKE_TYPE_NAME(IteratorImplementation_)<P, PP>(settings, file, filters, num_threads);
|
2017-12-19 20:24:00 +01:00
|
|
|
}
|
2017-12-28 16:33:07 +01:00
|
|
|
};
|
|
|
|
|
}
|
2017-12-19 20:24:00 +01:00
|
|
|
|
2018-07-07 21:14:27 +02:00
|
|
|
template <typename P, typename PP>
|
|
|
|
|
void MAKE_INIT_FN(IteratorImplementation_)(IteratorFactoryImplementation<P, PP>* mapping) {
|
2017-12-28 16:33:07 +01:00
|
|
|
static const std::string schema_name = STRINGIFY(IfcSchema);
|
2018-08-29 12:55:27 +02:00
|
|
|
MAKE_TYPE_NAME(factory_t)<P, PP> factory;
|
2017-12-21 14:14:04 +01:00
|
|
|
mapping->bind(schema_name, factory);
|
|
|
|
|
}
|
2017-12-19 20:24:00 +01:00
|
|
|
|
2018-07-07 21:14:27 +02:00
|
|
|
template void MAKE_INIT_FN(IteratorImplementation_)<float, float>(IteratorFactoryImplementation<float, float>*);
|
|
|
|
|
template void MAKE_INIT_FN(IteratorImplementation_)<float, double>(IteratorFactoryImplementation<float, double>*);
|
|
|
|
|
template void MAKE_INIT_FN(IteratorImplementation_)<double, double>(IteratorFactoryImplementation<double, double>*);
|