Functions
fhiclmodule.cc File Reference
#include "cetlib/compiler_macros.h"
#include "pybind11/pybind11.h"
#include "cetlib/search_path.h"
#include "cetlib_except/exception.h"
#include "fhiclcpp/ParameterSet.h"
#include "fhiclcpp/ParameterSetWalker.h"
#include "fhiclcpp/detail/printing_helpers.h"
#include "fhiclcpp/make_ParameterSet.h"
#include <iomanip>
#include <iostream>
#include <sstream>

Go to the source code of this file.

Functions

 PYBIND11_MODULE (fhicl, m)
 

Function Documentation

PYBIND11_MODULE ( fhicl  ,
 
)

Definition at line 423 of file fhiclmodule.cc.

424 {
425  m.doc() = "Extention module for reading a FHiCL configuration file into a "
426  "native Python dictionary.";
427  m.def("make_pset", &make_pset, "Make dictionary from parameter set.");
428  m.def("pretty",
429  &pretty,
430  "Print the in-memory dictionary. Note that what is printed is not a "
431  "FHiCL-conforming string.");
432  py::register_exception<cet::exception>(m, "CetException");
433 }