1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
#ifndef PBCOPPER_CLI_v2_RESULTSHANDLER_H
#define PBCOPPER_CLI_v2_RESULTSHANDLER_H
#include <pbcopper/PbcopperConfig.h>
#include <functional>
namespace PacBio {
namespace CLI_v2 {
class Results;
///
/// A "ResultsHandler" is the callback associated with an interface. It will be
/// invoked after parsing values from the command line or resolved tool contract,
/// providing those results to the application.
///
/// The return value will be the application's exit value (e.g. EXIT_SUCCESS or
/// EXIT_FAILURE).
///
using ResultsHandler = std::function<int(const Results&)>;
} // namespace CLI_v2
} // namespace PacBio
#endif // PBCOPPER_CLI_v2_RESULTSHANDLER_H
|