1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
#include "options.ih"
unique_ptr<Options> Options::s_options;
bool Options::s_input;
char Options::s_defaultConfig[] = ".xdrc"; // in $HOME
char Options::s_defaultHistory[] = ".xd.his"; // in $HOME
bool Options::s_fromHome[] = // values correspond to
{ // s_startAt entries
true,
false,
true
};
string const Options::s_startAt[] =
{
"home",
"root",
""
};
// the last element is used for the default value if
// valid alternatives aren't used
string const *Options::s_endStartAt = s_startAt + size(s_startAt) - 1;
bool Options::s_allDirs[] =
{
true,
false,
true
};
string const Options::s_dirs[] =
{
"all",
"unique",
""
};
string const *Options::s_endDirs = s_dirs + size(s_dirs) - 1;
TriState Options::s_addRoot[] =
{
NEVER,
IF_EMPTY,
ALWAYS,
IF_EMPTY
};
string const Options::s_triState[] =
{
"never",
"if-empty",
"always",
""
};
string const *Options::s_endTriState = s_triState + size(s_triState) - 1;
|