Isis 3 Programmer Reference
KeywordValueBad.cpp
Go to the documentation of this file.
1 
24 #include "Message.h"
25 
26 using namespace std;
27 
28 QString Isis::Message::KeywordValueBad(const QString &key) {
29  return "Keyword [" + key + "] has bad value";
30 }
31 
32 QString Isis::Message::KeywordValueBad(const QString &key, const QString &value) {
33  QString message;
34 
35  message = "Keyword [" + key + "] has bad value [";
36  if(value.size() <= 20) {
37  message += value + "]";
38  }
39  else {
40  message += value.mid(0, 20) + " ...]";
41  }
42  return message;
43 }
QString KeywordValueBad(const QString &key)
This error should be used when a supplied keyword does not appear in the list (e.g., an Isis cube label).
Namespace for the standard library.