/
cmdline.h
executable file
·43 lines (37 loc) · 1.05 KB
/
cmdline.h
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
/**********************************************************************
|
| Bogart
| Chess Engine
|
| Copyright (C) 2009-2013 Dr.Kameleon
|
|**********************************************************************
| cmdline.h
|**********************************************************************/
#ifndef __CMDLINE_H__
#define __CMDLINE_H__
//=======================================================
// Types
//=======================================================
struct ParseResult
{
STR cmd;
STR fen;
UINT depth;
BOOL verbose;
BOOL loop;
};
//=======================================================
// Prototype
//=======================================================
class Cmdline
{
public:
//-----------------------------------------
// Methods
//-----------------------------------------
static void optionsConflict(const po::variables_map& vm, const char* optA, const char* optB);
static void optionsDepend(const po::variables_map& vm, const char* opt, const char* dependsOn);
static ParseResult parseArgs(int argc, char *argv[]);
};
#endif