Error handling

- Validates specified columns in custom reports against list of good
  column names.
- Validates list of sort columns in custom reports against list of
  specified column names.
- Minor fix to grammar file.
This commit is contained in:
Paul Beckingham 2009-02-15 22:33:18 -05:00
parent 4e63d93005
commit 1a4469d388
3 changed files with 61 additions and 3 deletions

View file

@ -103,6 +103,8 @@ std::string handleReportOldest (TDB&, T&, Config&);
std::string handleReportNewest (TDB&, T&, Config&);
std::string handleCustomReport (TDB&, T&, Config&, const std::string&);
void validReportColumns (const std::vector <std::string>&);
void validSortColumns (const std::vector <std::string>&, const std::vector <std::string>&);
// util.cpp
bool confirm (const std::string&);