#pragma once /////////////////////////////////////////////////////////////////////// // MT2Q4.h - Asynchronous text finder // // // // Jim Fawcett, CSE687 - Object Oriented Design, Midterm Spring 2018 // /////////////////////////////////////////////////////////////////////// #include #include #include #include #include class MT2Q4 { public: using FPtr = bool(*)(const std::string&, const std::string&); static bool findText(const std::string& text, const std::string& filePath); static std::future findTextAsync(FPtr pFinder, const std::string& text, const std::string& filePath); };