Move -nice handling to CommandLineModuleManager
[alexxy/gromacs.git] / src / gromacs / commandline / cmdlinemodulemanager-impl.h
index c4c23c59640c3f8c62afb5bf744a26332b3ccafc..5a56b68f5c4643f9afed62b66fadae4889438667 100644 (file)
@@ -154,6 +154,9 @@ class CommandLineCommonOptionsHolder
          */
         bool finishOptions();
 
+        //! Adjust defaults based on module settings.
+        void adjustFromSettings(const CommandLineModuleSettings &settings);
+
         //! Returns the internal Options object.
         Options *options() { return &options_; }
         //! Returns the settings for printing startup information.
@@ -180,6 +183,8 @@ class CommandLineCommonOptionsHolder
             return bQuiet_ && !bVersion_;
         }
 
+        //! Returns the nice level.
+        int niceLevel() const { return niceLevel_; }
         //! Returns the debug level.
         int debugLevel() const { return debugLevel_; }
 
@@ -195,6 +200,7 @@ class CommandLineCommonOptionsHolder
         bool                         bQuiet_;
         bool                         bVersion_;
         bool                         bCopyright_;
+        int                          niceLevel_;
         int                          debugLevel_;
 
         GMX_DISALLOW_COPY_AND_ASSIGN(CommandLineCommonOptionsHolder);