summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-07-12 22:18:01 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2017-07-12 22:18:01 +0100
commit0ccd96bcffe9fd4fa3504e8ab46e38e4eb5d7270 (patch)
tree919e109064388ac900a2827cc8a8b605a57f418d
parentAssert there is only one service factory and use it regardless of name. (diff)
downloadicetray-0ccd96bcffe9fd4fa3504e8ab46e38e4eb5d7270.tar.bz2
icetray-0ccd96bcffe9fd4fa3504e8ab46e38e4eb5d7270.tar.xz
icetray-0ccd96bcffe9fd4fa3504e8ab46e38e4eb5d7270.zip
Add inline options class for testing inline macros
-rw-r--r--icetray/unittests/testOptions.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/icetray/unittests/testOptions.cpp b/icetray/unittests/testOptions.cpp
index b0bfdee..a205755 100644
--- a/icetray/unittests/testOptions.cpp
+++ b/icetray/unittests/testOptions.cpp
@@ -12,3 +12,17 @@ ICETRAY_OPTIONS(TestOptions,
FACTORY(TestOptions, IceTray::OptionsFactory);
+class TestOptionsInline : public IceTray::Options {
+ public:
+ TestOptionsInline() : IceTray::Options("Test options inline")
+ {
+ }
+
+ ICETRAY_OPTIONS_INLINE(
+ ("testIntInline", boost::program_options::value(&testInt), "testInt")
+ );
+
+ int testInt;
+};
+FACTORY(TestOptionsInline, IceTray::OptionsFactory);
+