CASM
1.1.0
A Clusters Approach to Statistical Mechanics
CLIParse.hh
Go to the documentation of this file.
1
#ifndef CASM_CLIParse
2
#define CASM_CLIParse
3
4
#include <wordexp.h>
5
6
#include <string>
7
8
namespace
CASM
{
9
10
class
CLIParse
{
11
public
:
13
CLIParse
(
int
_argc,
char
**_argv);
14
16
CLIParse
(std::string _args);
17
18
~CLIParse
();
19
20
int
argc
()
const
{
return
m_argc
; }
21
22
char
**
argv
()
const
{
return
m_argv
; }
23
24
int
parse_result
()
const
{
return
m_parse_result
; }
25
26
private
:
27
int
m_argc
;
28
char
**
m_argv
;
29
32
int
m_parse_result
;
33
34
bool
m_free_p
;
35
wordexp_t
m_p
;
36
};
37
38
namespace
Completer {
39
class
OptionHandlerBase
;
40
}
41
44
void
parse_args
(Completer::OptionHandlerBase &opt, std::string args);
45
}
// namespace CASM
46
47
#endif
CASM::CLIParse
Definition:
CLIParse.hh:10
CASM::CLIParse::~CLIParse
~CLIParse()
Definition:
CLIParse.cc:40
CASM::CLIParse::argc
int argc() const
Definition:
CLIParse.hh:20
CASM::CLIParse::m_argc
int m_argc
Definition:
CLIParse.hh:27
CASM::CLIParse::parse_result
int parse_result() const
Definition:
CLIParse.hh:24
CASM::CLIParse::m_argv
char ** m_argv
Definition:
CLIParse.hh:28
CASM::CLIParse::CLIParse
CLIParse(int _argc, char **_argv)
Non-owning.
Definition:
CLIParse.cc:11
CASM::CLIParse::m_parse_result
int m_parse_result
Definition:
CLIParse.hh:32
CASM::CLIParse::argv
char ** argv() const
Definition:
CLIParse.hh:22
CASM::CLIParse::m_free_p
bool m_free_p
Definition:
CLIParse.hh:34
CASM::CLIParse::m_p
wordexp_t m_p
Definition:
CLIParse.hh:35
CASM::Completer::OptionHandlerBase
Definition:
Handlers.hh:229
CASM
Main CASM namespace.
Definition:
APICommand.hh:8
CASM::parse_args
void parse_args(Completer::OptionHandlerBase &opt, std::string args)
Definition:
CLIParse.cc:48
include
casm
app
CLIParse.hh
Generated on Tue Mar 23 2021 14:16:34 for CASM by
1.9.1