-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcli.hpp
More file actions
52 lines (46 loc) · 1.84 KB
/
cli.hpp
File metadata and controls
52 lines (46 loc) · 1.84 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/* =====================================================================================
* Copyright (c) 2011, Jonas Maaskola
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* =====================================================================================
*
* Filename: main.cpp
*
* Description: Executable for the HMM package
*
* Created: Thu Aug 4 22:12:31 2011 +0200
*
* Author: Jonas Maaskola <jonas@maaskola.de>
*
* =====================================================================================
*/
#ifndef CLI_HPP
#define CLI_HPP
#include <string>
#include <boost/program_options.hpp>
#include "executioninformation.hpp"
boost::program_options::options_description gen_generic_options(
std::string &config_path, size_t cols);
static const int PROCESSING_SUCCESSFUL = 2;
/** Parse and process command line arguments.
* Return value is either EXIT_SUCCESS, EXIT_FAILURE, or PROCESSING_SUCCESSFUL.
*/
int process_cli_options(
int argc, const char **argv, ExecutionInformation &exec_info,
const std::string &usage_string,
boost::program_options::options_description &cli_options,
bool use_positional_options,
boost::program_options::positional_options_description &positional_options);
#endif