Functions
test_configuration3.cxx File Reference
#include "WireCellUtil/Configuration.h"
#include <iostream>
#include <unordered_map>
#include <string>

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

int main ( void  )

Definition at line 9 of file test_configuration3.cxx.

10 {
12  cfg["chirp"] = "bad";
13  cfg["bad"] = "bad";
14 
16  top["maskmap"] = cfg;
17 
18 
19  // void OmnibusNoiseFilter::configure(const WireCell::Configuration& top)
20 
21  auto jmm = top["maskmap"];
22 
23  std::unordered_map<std::string, std::string> mm;
24  for (auto name : jmm.getMemberNames()) {
25  mm[name] = jmm[name].asString();
26  cerr << name << " " << mm[name] << endl;
27  }
28 
29 
30  auto newthing = top["maskmap"]["adc"];
31  //auto newthing = cfg["adc"];
32  if (newthing.isNull()) {
33  cerr << "dunno adc\n";
34  }
35 
36 
37  cerr << top<< endl;
38 }
static QCString name
Definition: declinfo.cpp:673
cfg
Definition: dbjson.py:29
static const double mm
Definition: Units.h:73
Json::Value Configuration
Definition: Configuration.h:50
QTextStream & endl(QTextStream &s)