2
0
mirror of https://github.com/boostorg/dll.git synced 2026-01-27 06:52:07 +00:00
Files
dll/example/tutorial_common/plugin_api.hpp
2014-08-08 14:25:22 +04:00

25 lines
603 B
C++

// Copyright 2011-2013 Renato Tegon Forti
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
// For more information, see http://www.boost.org
#ifndef BOOST_PLUGIN_MY_PLUGIN_API_HPP
#define BOOST_PLUGIN_MY_PLUGIN_API_HPP
//[plugapi
#include <string>
class my_plugin_api {
public:
virtual ~my_plugin_api() {};
virtual float version() const = 0;
virtual std::string name() const = 0;
virtual float calculate(float x, float y) = 0;
};
//]
#endif // BOOST_PLUGIN_MY_PLUGIN_API_HPP