]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/options.hxx
apt.dat parser: clearer log and exception messages
[flightgear.git] / src / Main / options.hxx
index a74e1a15bf2d82797cdc982653c667b41a01c564..4f618213b55c45afc80bca1df8171f012f261e9f 100644 (file)
@@ -101,7 +101,14 @@ public:
     * This can be used to inject option values, eg based upon environment variables
     */
   int addOption(const std::string& key, const std::string& value);
-  
+
+  /**
+   * set an option, overwriting any existing value which might be set
+   */
+  int setOption(const std::string& key, const std::string& value);
+
+  void clearOption(const std::string& key);
+
   /**
    * apply option values to the simulation state
    * (set properties, etc). 
@@ -134,6 +141,8 @@ public:
    * Used by early startup code before Options object is created
    */
   static bool checkForArg(int argc, char* argv[], const char* arg);
+
+      std::string platformDefaultRoot() const;
 private:
   void showUsage() const;
   
@@ -148,8 +157,7 @@ private:
      * to help the user our (finding a base package), and hence need to init Qt.
      */
   void setupRoot(int argc, char **argv);
-  
-  std::string platformDefaultRoot() const;
+
   
   class OptionsPrivate;
   std::auto_ptr<OptionsPrivate> p;