From 83d558d0962efbb20cfa8e3589b9377e10818e1c Mon Sep 17 00:00:00 2001 From: couriersud Date: Sat, 19 Jan 2019 23:37:01 +0100 Subject: netlist: nlwav now also converts log files to VCD format. [couriersud] Please refer to nlwav --help for examples. There is also an example how to create multi-channel wav files. --- src/lib/netlist/plib/poptions.cpp | 74 ++++++++++++++++++++++++++++++++------- 1 file changed, 62 insertions(+), 12 deletions(-) (limited to 'src/lib/netlist/plib/poptions.cpp') diff --git a/src/lib/netlist/plib/poptions.cpp b/src/lib/netlist/plib/poptions.cpp index de00f9efa4a..43e992f9225 100644 --- a/src/lib/netlist/plib/poptions.cpp +++ b/src/lib/netlist/plib/poptions.cpp @@ -7,6 +7,7 @@ #include "poptions.h" #include "ptypes.h" +#include "pexception.h" namespace plib { /*************************************************************************** @@ -62,15 +63,17 @@ namespace plib { } options::options() + : m_other_args(nullptr) { } options::options(option *o[]) + : m_other_args(nullptr) { int i=0; while (o[i] != nullptr) { - m_opts.push_back(o[i]); + register_option(o[i]); i++; } } @@ -85,9 +88,39 @@ namespace plib { m_opts.push_back(opt); } + void options::check_consistency() + { + for (auto &opt : m_opts) + { + option *o = dynamic_cast