Feature - Config validation

- The 'version' command now complains about use of deprecated color names and
  duplicate entries.
- Unit tests verify duplicate detection.
- Unit tests verify deprecated color detection.
- Most validation code moved from command.cpp to Config.cpp.
This commit is contained in:
Paul Beckingham 2009-12-08 22:56:01 -05:00
parent b032a00283
commit 42c1b30c31
6 changed files with 206 additions and 25 deletions

View file

@ -44,6 +44,7 @@ public:
void createDefaultRC (const std::string&, const std::string&);
void createDefaultData (const std::string&);
void setDefaults ();
void clear ();
const std::string get (const char*);
const std::string get (const char*, const char*);
@ -56,6 +57,13 @@ public:
void set (const std::string&, const double);
void set (const std::string&, const std::string&);
void all (std::vector <std::string>&);
void getSequence (std::vector<std::string>&);
std::string checkForDuplicates ();
std::string checkForDeprecatedColor ();
private:
std::vector <std::string> sequence;
};
#endif