mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 02:47:48 +00:00
tree and document plug-ins
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user