Isis 3 Programmer Reference
KeywordValueBad.cpp
1
6/* SPDX-License-Identifier: CC0-1.0 */
7#include "Message.h"
8
9using namespace std;
10
11QString Isis::Message::KeywordValueBad(const QString &key) {
12 return "Keyword [" + key + "] has bad value";
13}
14
15QString Isis::Message::KeywordValueBad(const QString &key, const QString &value) {
16 QString message;
17
18 message = "Keyword [" + key + "] has bad value [";
19 if(value.size() <= 20) {
20 message += value + "]";
21 }
22 else {
23 message += value.mid(0, 20) + " ...]";
24 }
25 return message;
26}
QString KeywordValueBad(const QString &key)
This error should be used when a supplied keyword does not appear in the list (e.g....
Namespace for the standard library.