diff options
author | 2011-03-25 16:14:09 +0000 | |
---|---|---|
committer | 2011-03-25 16:14:09 +0000 | |
commit | fb5091182ec04236744f282bdf37c3ccdda8c04d (patch) | |
tree | 9f8e28726ba8527f0829ea01db9b140ca3bbb7d8 /src/lib/util/options.h | |
parent | e9fc65db486e87fcd44bbb298cf957843a027359 (diff) |
Cleanups and version bump.mame0141u4
Diffstat (limited to 'src/lib/util/options.h')
-rw-r--r-- | src/lib/util/options.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/util/options.h b/src/lib/util/options.h index 0ec2783dffd..4ef8a6b1170 100644 --- a/src/lib/util/options.h +++ b/src/lib/util/options.h @@ -96,7 +96,7 @@ public: class entry { friend class core_options; - + // construction/destruction entry(const options_entry &entry); @@ -143,16 +143,16 @@ public: core_options(const options_entry *entrylist1, const options_entry *entrylist2, const options_entry *entrylist3); core_options(const core_options &src); virtual ~core_options(); - + // operators core_options &operator=(const core_options &rhs); bool operator==(const core_options &rhs); bool operator!=(const core_options &rhs); - + // getters entry *first() const { return m_entrylist; } const char *command() const { return m_command; } - + // configuration void add_entries(const options_entry *entrylist, bool override_existing = false); void set_default_value(const char *name, const char *defvalue); @@ -181,7 +181,7 @@ public: bool set_value(const char *name, const char *value, int priority, astring &error_string); bool set_value(const char *name, int value, int priority, astring &error_string); bool set_value(const char *name, float value, int priority, astring &error_string); - + // misc static const char *unadorned(int x = 0) { return s_option_unadorned[MIN(x, MAX_UNADORNED_OPTIONS)]; } @@ -195,9 +195,9 @@ private: // internal state entry * m_entrylist; // head of list of entries entry ** m_entrylist_tailptr; // pointer to tail of entry list - tagmap_t<entry *> m_entrymap; // map for fast lookup + tagmap_t<entry *> m_entrymap; // map for fast lookup astring m_command; // command found - static const char *const s_option_unadorned[]; // array of unadorned option "names" + static const char *const s_option_unadorned[]; // array of unadorned option "names" }; |