Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
fhiclcpp
fhiclcpp
test
types
print_allowed_configuration_optionalParameters_t.cc
Go to the documentation of this file.
1
#include "
fhiclcpp/types/OptionalAtom.h
"
2
#include "
fhiclcpp/types/OptionalSequence.h
"
3
#include "
fhiclcpp/types/OptionalTable.h
"
4
#include "
fhiclcpp/types/OptionalTuple.h
"
5
#include "
fhiclcpp/types/Sequence.h
"
6
#include "
fhiclcpp/types/Table.h
"
7
#include "
fhiclcpp/types/Tuple.h
"
8
9
#include <iostream>
10
11
namespace
{
12
13
using namespace
fhicl
;
14
15
//============================================================================
16
// Job configuration
17
//
18
19
struct
Physics {
20
Tuple<std::string, double>
energyCutoff{
Name
(
"energyCutoff"
)};
21
OptionalAtom<std::string>
moniker{
Name
(
"moniker"
)};
22
};
23
24
struct
Composer {
25
Atom<std::string>
composer{
Name
(
"composer"
)};
26
OptionalTuple<int, std::string>
aSymphonyMoniker{
27
Name
(
"aSymphonyMoniker"
),
28
Comment
(
"Symphony number/nickname pair"
)};
29
};
30
31
struct
Configuration
{
32
OptionalAtom<int>
atom{
Name
(
"atom"
)};
33
OptionalAtom<std::string>
name
{
Name
(
"name"
)};
34
OptionalTable<Physics>
physics{
Name
(
"physics"
)};
35
OptionalSequence<int>
list1{
Name
(
"list1"
)};
36
OptionalSequence<int, 4>
list2{
Name
(
"list2"
)};
37
OptionalSequence<Sequence<int, 2>
> list3{
Name
(
"list3"
)};
38
OptionalSequence<Table<Composer>
, 4> list4{
Name
(
"list4"
)};
39
};
40
}
41
42
int
43
main
()
44
{
45
Table<Configuration>
pset{
Name
(
"pset"
)};
46
pset.print_allowed_configuration(std::cout);
47
}
name
static QCString name
Definition:
declinfo.cpp:673
Sequence.h
main
int main()
Definition:
print_allowed_configuration_optionalParameters_t.cc:43
fhicl::Table
Definition:
type_traits.h:30
Name
ChannelGroupService::Name Name
Definition:
FixedChannelGroupService_service.cc:19
fhicl::OptionalTable
Definition:
type_traits.h:32
OptionalAtom.h
OptionalSequence.h
art::errors::Configuration
Definition:
Exception.h:32
OptionalTable.h
fhicl::OptionalTuple
Definition:
type_traits.h:40
OptionalTuple.h
fhicl
Definition:
InputSourceFactory.h:7
fhicl::Atom< std::string >
Comment
#define Comment
Definition:
commentscan.cpp:4062
fhicl::OptionalSequence
Definition:
type_traits.h:45
Tuple.h
Table.h
fhicl::Tuple
Definition:
type_traits.h:38
fhicl::OptionalAtom< std::string >
Generated by
1.8.11