Schema agnostic iterator

This commit is contained in:
Thomas Krijnen
2017-12-20 11:10:27 +01:00
parent f4463d2935
commit 830a03ffcd
10 changed files with 168 additions and 18 deletions
@@ -17,13 +17,13 @@ void MAKE_INIT_FN(IteratorImplementation_)() {
static const std::string schema_name = TOSTRING(IfcSchema);
struct {
IteratorImplementation<float>* operator()(const IfcGeom::IteratorSettings& settings, IfcParse::IfcFile* file) const {
IfcGeom::IteratorImplementation<float>* operator()(const IfcGeom::IteratorSettings& settings, IfcParse::IfcFile* file) const {
return new IfcGeom::MAKE_TYPE_NAME(IteratorImplementation_)<float>(settings, file);
}
} factory_float;
struct {
IteratorImplementation<double>* operator()(const IfcGeom::IteratorSettings& settings, IfcParse::IfcFile* file) const {
IfcGeom::IteratorImplementation<double>* operator()(const IfcGeom::IteratorSettings& settings, IfcParse::IfcFile* file) const {
return new IfcGeom::MAKE_TYPE_NAME(IteratorImplementation_)<double>(settings, file);
}
} factory_double;