print_allowed_configuration_tableFragment_t.cc
Go to the documentation of this file.
1 #include "fhiclcpp/types/Atom.h"
3 #include "fhiclcpp/types/Table.h"
5 
6 #include <iostream>
7 #include <string>
8 
9 namespace {
10 
11  using namespace fhicl;
12 
13  //============================================================================
14  // Job configuration
15  //
16 
17  struct S {
18  Atom<std::string> test{Name("test"), Comment("this works")};
19  Sequence<int> sequence{Name("sequence")};
20  Sequence<double, 5> array{Name("array")};
21  };
22 
23  struct Config {
25  };
26 }
27 
28 int
30 {
31  Table<Config> pset{Name("pset")};
32  pset.print_allowed_configuration(std::cout);
33 }
ChannelGroupService::Name Name
typename config_impl< T >::type Config
Definition: ModuleMacros.h:52
auto array(Array const &a)
Returns a manipulator which will print the specified array.
Definition: DumpUtils.h:228
#define Comment