summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/plib/poptions.h
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2017-01-31 22:37:12 +0100
committer couriersud <couriersud@gmx.org>2017-01-31 22:37:25 +0100
commite02d8cad2bc67ada9b7429c6dc8401a439c0c025 (patch)
treedebc396921388c052757f5da5c020c1f122c8c7d /src/lib/netlist/plib/poptions.h
parent282a7e76c3a2ca3de90351f6527a5aaa8ffdbd4a (diff)
Fixed a number of issues:
- Fixed crashes on terminals without nets (i.e. connected to a rail) - Reviewed "FIXMEs" and corrected some minor ones. - Made m_cur_analog protected. - Fixed pmf delegates to work with msvc. - More optimizations to the solver code. - Started work on a better signal pipeline in nlwav - Only generate documentation for entities which are documented. [Couriersud]
Diffstat (limited to 'src/lib/netlist/plib/poptions.h')
-rw-r--r--src/lib/netlist/plib/poptions.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/netlist/plib/poptions.h b/src/lib/netlist/plib/poptions.h
index 253fcbf9b34..f859b2f5b3d 100644
--- a/src/lib/netlist/plib/poptions.h
+++ b/src/lib/netlist/plib/poptions.h
@@ -137,6 +137,20 @@ private:
double m_val;
};
+class option_long : public option
+{
+public:
+ option_long(options &parent, pstring ashort, pstring along, long defval, pstring help)
+ : option(parent, ashort, along, help, true), m_val(defval)
+ {}
+
+ virtual int parse(const pstring &argument) override;
+
+ long operator ()() { return m_val; }
+private:
+ long m_val;
+};
+
class option_vec : public option
{
public: