mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 07:18:36 +00:00
Replace Boost function callbacks
Generated with the assistance of an AI coding tool.
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
#include "../ifcparse/file.h"
|
||||
#include "../plugin/plugin.h"
|
||||
|
||||
#include <boost/function.hpp>
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
|
||||
#include <filesystem>
|
||||
@@ -64,7 +64,7 @@ struct SERIALIZERS_API document_serializer_context {
|
||||
|
||||
class SERIALIZERS_API document_serializer_registry {
|
||||
public:
|
||||
typedef boost::function<std::shared_ptr<serializer>(const document_serializer_context&)> create_fn;
|
||||
typedef std::function<std::shared_ptr<serializer>(const document_serializer_context&)> create_fn;
|
||||
|
||||
void bind(const document_serializer_info& info, create_fn create, const ifcopenshell::plugin::module& module = ifcopenshell::plugin::module());
|
||||
const document_serializer_info* find(const std::string& format, const std::string& schema_name = std::string()) const;
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#include "../ifcgeom/geometry_serializer.h"
|
||||
#include "../plugin/plugin.h"
|
||||
|
||||
#include <boost/function.hpp>
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
|
||||
#include <filesystem>
|
||||
@@ -61,8 +61,8 @@ struct SERIALIZERS_API geometry_serializer_context {
|
||||
|
||||
class SERIALIZERS_API geometry_serializer_registry {
|
||||
public:
|
||||
typedef boost::function<std::shared_ptr<geometry_serializer>(const geometry_serializer_context&)> create_fn;
|
||||
typedef boost::function<void(geometry_serializer_context&)> configure_fn;
|
||||
typedef std::function<std::shared_ptr<geometry_serializer>(const geometry_serializer_context&)> create_fn;
|
||||
typedef std::function<void(geometry_serializer_context&)> configure_fn;
|
||||
|
||||
void bind(const geometry_serializer_info& info, create_fn create, configure_fn configure = configure_fn(), const ifcopenshell::plugin::module& module = ifcopenshell::plugin::module());
|
||||
bool has(const std::string& extension) const;
|
||||
|
||||
Reference in New Issue
Block a user