File: ResultsHandler.h

package info (click to toggle)
pbcopper 2.3.0%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,996 kB
  • sloc: ansic: 164,688; cpp: 53,414; sh: 184; makefile: 22
file content (26 lines) | stat: -rw-r--r-- 671 bytes parent folder | download | duplicates (3)
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