diff options
Diffstat (limited to 'icetray/unittests/testOptions.cpp')
-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); + |