• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
7 #ifndef BOOST_DLL_MY_PLUGIN_API_HPP
8 #define BOOST_DLL_MY_PLUGIN_API_HPP
9 
10 //[plugapi
11 #include <boost/config.hpp>
12 #include <string>
13 
14 class BOOST_SYMBOL_VISIBLE my_plugin_api {
15 public:
16    virtual std::string name() const = 0;
17    virtual float calculate(float x, float y) = 0;
18 
~my_plugin_api()19    virtual ~my_plugin_api() {}
20 };
21 //]
22 
23 #endif // BOOST_DLL_MY_PLUGIN_API_HPP
24 
25