my_plugin_api.hpp 555 B

123456789101112131415161718192021222324
  1. // Copyright 2016-2019 Antony Polukhin.
  2. //
  3. // Distributed under the Boost Software License, Version 1.0.
  4. // (See accompanying file LICENSE_1_0.txt
  5. // or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. #ifndef BOOST_DLL_MY_PLUGIN_API_HPP
  7. #define BOOST_DLL_MY_PLUGIN_API_HPP
  8. //[plugapi
  9. #include <boost/config.hpp>
  10. #include <string>
  11. class BOOST_SYMBOL_VISIBLE my_plugin_api {
  12. public:
  13. virtual std::string name() const = 0;
  14. virtual float calculate(float x, float y) = 0;
  15. virtual ~my_plugin_api() {}
  16. };
  17. //]
  18. #endif // BOOST_DLL_MY_PLUGIN_API_HPP