8 #ifndef SWOOSE_MOCK_MODULE_H
9 #define SWOOSE_MOCK_MODULE_H
12 #include <boost/dll/alias.hpp>
23 std::string name()
const noexcept
final;
25 boost::any
get(
const std::string& interface,
const std::string& model)
const final;
27 bool has(
const std::string& interface,
const std::string& model)
const noexcept
final;
29 std::vector<std::string> announceInterfaces()
const noexcept
final;
31 std::vector<std::string> announceModels(
const std::string& interface)
const noexcept
final;
33 static std::shared_ptr<Scine::Core::Module> make();
37 std::vector<std::shared_ptr<Scine::Core::Module>> moduleFactory();
59 const void* moduleFactory =
reinterpret_cast<const void*
>(
reinterpret_cast<intptr_t
>(&sample_namespace::moduleFactory));
62 BOOST_DLL_ALIAS(Scine::Swoose::moduleFactory, moduleFactory)
65 #endif // SWOOSE_MOCK_MODULE_H
Mock module for QM/MM tests.
Definition: MockModule.h:21