#include "cetlib/filepath_maker.h"
#include "fhiclcpp/ParameterSet.h"
#include "fhiclcpp/intermediate_table.h"
#include "fhiclcpp/parse.h"
#include <cstdlib>
#include <iostream>
#include <string>
Go to the source code of this file.
Definition at line 17 of file to_indented_string_annotated_test.cc.
21 char const* fhicl_env =
getenv(
"FHICL_FILE_PATH");
23 if (fhicl_env ==
nullptr) {
24 std::cerr <<
"Expected environment variable FHICL_FILE_PATH is " 25 <<
"missing or empty: using \".\"\n";
32 std::string const in{
"to_indented_string_annotated_test.fcl"};
37 pset.put<
int>(
"another_number", 4);
38 pset.put_or_replace<
int>(
"some_number", 8);
39 pset.put_or_replace<
double>(
"double", 234.6);
41 std::cout << pset.to_indented_string(0,
true) <<
std::endl;
static ParameterSet make(intermediate_table const &tbl)
std::string getenv(std::string const &name)
intermediate_table parse_document(std::string const &filename, cet::filepath_maker &maker)
QTextStream & endl(QTextStream &s)