X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fmoof%2Fsettings.hh;fp=src%2Fmoof%2Fsettings.hh;h=c8459cf1ee4b69f9fc2c88c00aaba6f401fb4dbc;hp=4807eeb16d8745ddba02c0b2762172586cc7230f;hb=574af38ed616d1adfa5e6ce35f67cda1f707f89d;hpb=6c9943707d4f33035830eba0587a61a34eaecbc2 diff --git a/src/moof/settings.hh b/src/moof/settings.hh index 4807eeb..c8459cf 100644 --- a/src/moof/settings.hh +++ b/src/moof/settings.hh @@ -1,13 +1,11 @@ -/*] Copyright (c) 2009-2010, Charles McGarvey [************************** +/*] Copyright (c) 2009-2011, Charles McGarvey [***************************** **] All rights reserved. * -* vi:ts=4 sw=4 tw=75 -* * Distributable under the terms and conditions of the 2-clause BSD license; * see the file COPYING for a complete text of the license. * -**************************************************************************/ +*****************************************************************************/ #ifndef _MOOF_SETTINGS_HH_ #define _MOOF_SETTINGS_HH_ @@ -33,7 +31,6 @@ class settings public: settings(int argc, char* argv[], const std::string& path); - ~settings(); void parse_args(int argc, char* argv[]); @@ -41,7 +38,6 @@ public: void load_files(const std::string& path); void load_files(const std::vector& path); - /** * Remove all settings. */ @@ -50,7 +46,6 @@ public: void save_as(const std::string& path); void save() const; - /** * Get a setting by name. * \param key The name of the setting. @@ -60,15 +55,12 @@ public: template bool get(const std::string& key, T& value) const; - private: mutable script script_; - - std::string mUserFile; + std::string userfile_; }; - template bool settings::get(const std::string& key, T& value) const {