tree and document plug-ins

This commit is contained in:
Thomas Krijnen
2026-04-17 11:24:09 +02:00
parent 3824e7b449
commit d2cc66fdf0
60 changed files with 2207 additions and 766 deletions
+3 -1
View File
@@ -20,7 +20,9 @@
#ifndef IFC_PARSE_API_H
#define IFC_PARSE_API_H
#ifdef _WIN32
#ifdef SWIG
#define IFC_PARSE_API
#elif defined(_WIN32)
#ifdef IFC_PARSE_EXPORTS
#define IFC_PARSE_API __declspec(dllexport)
#else
+2 -2
View File
@@ -504,7 +504,7 @@ class IFC_PARSE_API schema_registry {
typedef const schema_definition& (*get_schema_fn)();
typedef void (*clear_schema_fn)();
void bind(const std::string& schema_name, get_schema_fn get, clear_schema_fn clear, const plugin::module& module = plugin::module());
void bind(const std::string& schema_name, get_schema_fn get, clear_schema_fn clear, const ifcopenshell::plugin::module& module = ifcopenshell::plugin::module());
void bind(schema_definition* schema);
const schema_definition* get(const std::string& schema_name);
std::vector<std::string> names() const;
@@ -515,7 +515,7 @@ class IFC_PARSE_API schema_registry {
const schema_definition* schema_ = nullptr;
get_schema_fn get_ = nullptr;
clear_schema_fn clear_ = nullptr;
plugin::module module_;
ifcopenshell::plugin::module module_;
};
std::map<std::string, entry> entries_;