Functions
validate_ParameterSet_t.cc File Reference
#include "fhiclcpp/ParameterSet.h"
#include "fhiclcpp/types/Atom.h"
#include "fhiclcpp/types/Sequence.h"
#include "fhiclcpp/types/Table.h"
#include "fhiclcpp/types/Tuple.h"
#include <iostream>

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

int main ( void  )

Definition at line 67 of file validate_ParameterSet_t.cc.

68 {
69  putenv(const_cast<char*>("FHICL_FILE_PATH=./test:."));
70  cet::filepath_lookup policy("FHICL_FILE_PATH");
71  std::string cfg_in("validate_ParameterSet_t.fcl");
72  auto const pset = fhicl::ParameterSet::make(cfg_in, policy);
73 
74  try {
75  Table<Configuration> table{Name("pset")};
76  table.validate(pset.get<fhicl::ParameterSet>("pset"));
77  }
78  catch (std::exception const& e) {
79  std::cout << e.what() << std::endl;
80  }
81 }
std::string string
Definition: nybbler.cc:12
static ParameterSet make(intermediate_table const &tbl)
Definition: ParameterSet.cc:68
ChannelGroupService::Name Name
const double e
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33
QTextStream & endl(QTextStream &s)