Isis 3 Programmer Reference
KeywordValueNotInList.cpp
1
6/* SPDX-License-Identifier: CC0-1.0 */
7
8#include "Message.h"
9
10using namespace std;
11
12QString Isis::Message::KeywordValueNotInList(const QString &key, const QString &value,
13 const vector<QString> &list) {
14 QString message;
15 message = "Keyword [" + key + "=" + value + "] must be one of [";
16 for(unsigned int i = 0; i < list.size(); i++) {
17 message += list[i];
18 if(i < (list.size() - 1)) message += ",";
19 }
20 message += "]";
21
22 return message;
23}
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...
Namespace for the standard library.