/ src / ipc / libmultiprocess / example / calculator.h
calculator.h
 1  // Copyright (c) The Bitcoin Core developers
 2  // Distributed under the MIT software license, see the accompanying
 3  // file COPYING or http://www.opensource.org/licenses/mit-license.php.
 4  
 5  #ifndef EXAMPLE_CALCULATOR_H
 6  #define EXAMPLE_CALCULATOR_H
 7  
 8  #include <string>
 9  
10  class Calculator
11  {
12  public:
13      virtual ~Calculator() = default;
14      virtual void solveEquation(const std::string& eqn) = 0;
15  };
16  
17  #endif // EXAMPLE_CALCULATOR_H