MultiAgentDecisionProcess
Release 0.2.1
Main Page
Namespaces
Classes
Files
File List
File Members
argumentHandlersPostChild.h
Go to the documentation of this file.
1
29
namespace
ArgumentHandlers {
30
31
static
struct
argp_option
options_main
[] = {
32
{ 0 }
33
};
34
static
error_t
35
parse_main
(
int
key,
char
*arg,
struct
argp_state *state)
36
{
37
struct
arguments *theArgumentsStruc = (
struct
arguments*) state->input;
38
switch (key)
39
{
40
case
ARGP_KEY_INIT:
41
//give child_parsers access to the arguments structure on
42
//initialization.
43
for
(
int
i = 0; i < nrChildParsers; i++)
44
state->child_inputs[i] = theArgumentsStruc;
45
break
;
46
default
:
47
return
ARGP_ERR_UNKNOWN;
48
}
49
return
0;
50
}
51
/* Our argp parser. */
52
static
argp
theArgpStruc
= {
options_main
,
parse_main
, 0, doc, childVector };
53
54
}
src
planning
argumentHandlersPostChild.h
Generated on Mon Sep 23 2013 14:50:05 for MultiAgentDecisionProcess by
1.8.1.2