summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/options.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/util/options.h')
-rw-r--r--src/lib/util/options.h66
1 files changed, 33 insertions, 33 deletions
diff --git a/src/lib/util/options.h b/src/lib/util/options.h
index 6a107cbfad4..8d8ea78a303 100644
--- a/src/lib/util/options.h
+++ b/src/lib/util/options.h
@@ -51,24 +51,24 @@
//**************************************************************************
// option types
-const UINT32 OPTION_TYPE_MASK = 0x0007; // up to 8 different types
+const UINT32 OPTION_TYPE_MASK = 0x0007; // up to 8 different types
enum
{
- OPTION_INVALID, // invalid
- OPTION_HEADER, // a header item
- OPTION_COMMAND, // a command
- OPTION_BOOLEAN, // boolean option
- OPTION_INTEGER, // integer option
- OPTION_FLOAT, // floating-point option
- OPTION_STRING // string option
+ OPTION_INVALID, // invalid
+ OPTION_HEADER, // a header item
+ OPTION_COMMAND, // a command
+ OPTION_BOOLEAN, // boolean option
+ OPTION_INTEGER, // integer option
+ OPTION_FLOAT, // floating-point option
+ OPTION_STRING // string option
};
// option priorities
-const int OPTION_PRIORITY_DEFAULT = 0; // defaults are at 0 priority
-const int OPTION_PRIORITY_LOW = 50; // low priority
-const int OPTION_PRIORITY_NORMAL = 100; // normal priority
-const int OPTION_PRIORITY_HIGH = 150; // high priority
-const int OPTION_PRIORITY_MAXIMUM = 255; // maximum priority
+const int OPTION_PRIORITY_DEFAULT = 0; // defaults are at 0 priority
+const int OPTION_PRIORITY_LOW = 50; // low priority
+const int OPTION_PRIORITY_NORMAL = 100; // normal priority
+const int OPTION_PRIORITY_HIGH = 150; // high priority
+const int OPTION_PRIORITY_MAXIMUM = 255; // maximum priority
@@ -79,10 +79,10 @@ const int OPTION_PRIORITY_MAXIMUM = 255; // maximum priority
// static structure describing a single option with its description and default value
struct options_entry
{
- const char * name; // name on the command line
- const char * defvalue; // default value of this argument
- UINT32 flags; // flags to describe the option
- const char * description; // description for -showusage
+ const char * name; // name on the command line
+ const char * defvalue; // default value of this argument
+ UINT32 flags; // flags to describe the option
+ const char * description; // description for -showusage
};
@@ -124,17 +124,17 @@ public:
private:
// internal state
- entry * m_next; // link to the next data
- UINT32 m_flags; // flags from the entry
- UINT32 m_seqid; // sequence ID; bumped on each change
- bool m_error_reported; // have we reported an error on this option yet?
- int m_priority; // priority of the data set
- const char * m_description; // description for this item
- astring m_name[4]; // up to 4 names for the item
- astring m_data; // data for this item
- astring m_defdata; // default data for this item
- astring m_minimum; // minimum value
- astring m_maximum; // maximum value
+ entry * m_next; // link to the next data
+ UINT32 m_flags; // flags from the entry
+ UINT32 m_seqid; // sequence ID; bumped on each change
+ bool m_error_reported; // have we reported an error on this option yet?
+ int m_priority; // priority of the data set
+ const char * m_description; // description for this item
+ astring m_name[4]; // up to 4 names for the item
+ astring m_data; // data for this item
+ astring m_defdata; // default data for this item
+ astring m_minimum; // minimum value
+ astring m_maximum; // maximum value
};
// construction/destruction
@@ -196,11 +196,11 @@ private:
bool validate_and_set_data(entry &curentry, const char *newdata, int priority, astring &error_string);
// 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
- astring m_command; // command found
- static const char *const s_option_unadorned[]; // array of unadorned option "names"
+ 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
+ astring m_command; // command found
+ static const char *const s_option_unadorned[]; // array of unadorned option "names"
};