diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-07-12 22:18:01 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-07-12 22:18:01 +0100 |
commit | 0ccd96bcffe9fd4fa3504e8ab46e38e4eb5d7270 (patch) | |
tree | 919e109064388ac900a2827cc8a8b605a57f418d | |
parent | Assert there is only one service factory and use it regardless of name. (diff) | |
download | icetray-0ccd96bcffe9fd4fa3504e8ab46e38e4eb5d7270.tar.bz2 icetray-0ccd96bcffe9fd4fa3504e8ab46e38e4eb5d7270.tar.xz icetray-0ccd96bcffe9fd4fa3504e8ab46e38e4eb5d7270.zip |
Add inline options class for testing inline macros
-rw-r--r-- | icetray/unittests/testOptions.cpp | 14 |
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); + |