mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
Prefix typename for iteratorimplementation factory function struct
This commit is contained in:
@@ -13,7 +13,7 @@ namespace IfcGeom {
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
template <typename P, typename PP>
|
template <typename P, typename PP>
|
||||||
struct factory_t {
|
struct MAKE_TYPE_NAME(factory_t) {
|
||||||
IfcGeom::IteratorImplementation<P, PP>* operator()(const IfcGeom::IteratorSettings& settings, IfcParse::IfcFile* file) const {
|
IfcGeom::IteratorImplementation<P, PP>* operator()(const IfcGeom::IteratorSettings& settings, IfcParse::IfcFile* file) const {
|
||||||
return new IfcGeom::MAKE_TYPE_NAME(IteratorImplementation_)<P, PP>(settings, file);
|
return new IfcGeom::MAKE_TYPE_NAME(IteratorImplementation_)<P, PP>(settings, file);
|
||||||
}
|
}
|
||||||
@@ -23,7 +23,7 @@ namespace {
|
|||||||
template <typename P, typename PP>
|
template <typename P, typename PP>
|
||||||
void MAKE_INIT_FN(IteratorImplementation_)(IteratorFactoryImplementation<P, PP>* mapping) {
|
void MAKE_INIT_FN(IteratorImplementation_)(IteratorFactoryImplementation<P, PP>* mapping) {
|
||||||
static const std::string schema_name = STRINGIFY(IfcSchema);
|
static const std::string schema_name = STRINGIFY(IfcSchema);
|
||||||
factory_t<P, PP> factory;
|
MAKE_TYPE_NAME(factory_t)<P, PP> factory;
|
||||||
mapping->bind(schema_name, factory);
|
mapping->bind(schema_name, factory);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user