Isis 3 Programmer Reference
KeywordValueNotInList.cpp
Go to the documentation of this file.
1 
24 #include "Message.h"
25 
26 using namespace std;
27 
28 QString Isis::Message::KeywordValueNotInList(const QString &key, const QString &value,
29  const vector<QString> &list) {
30  QString message;
31  message = "Keyword [" + key + "=" + value + "] must be one of [";
32  for(unsigned int i = 0; i < list.size(); i++) {
33  message += list[i];
34  if(i < (list.size() - 1)) message += ",";
35  }
36  message += "]";
37 
38  return message;
39 }
Namespace for the standard library.
QString KeywordValueNotInList(const QString &key, const QString &value, const std::vector< QString > &list)
This error should be used when the value of a supplied keyword is not one of a specific list of possi...