]>
Commit | Line | Data |
---|---|---|
92f5a8d4 | 1 | // Copyright 2016-2019 Antony Polukhin. |
7c673cae FG |
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 | ||
7 | #ifndef BOOST_DLL_MY_PLUGIN_API_HPP | |
8 | #define BOOST_DLL_MY_PLUGIN_API_HPP | |
9 | ||
10 | //[plugapi | |
92f5a8d4 | 11 | #include <boost/config.hpp> |
7c673cae FG |
12 | #include <string> |
13 | ||
92f5a8d4 | 14 | class BOOST_SYMBOL_VISIBLE my_plugin_api { |
7c673cae FG |
15 | public: |
16 | virtual std::string name() const = 0; | |
17 | virtual float calculate(float x, float y) = 0; | |
18 | ||
19 | virtual ~my_plugin_api() {} | |
20 | }; | |
21 | //] | |
22 | ||
23 | #endif // BOOST_DLL_MY_PLUGIN_API_HPP | |
24 |