Isis 3 Programmer Reference
MissingDelimiter.cpp
Go to the documentation of this file.
1 
24 #include <sstream>
25 
26 #include "IString.h"
27 #include "Message.h"
28 
29 using namespace std;
30 
32  return "Missing delimiter [" + toString(d) + "]";
33 }
34 
35 QString Isis::Message::MissingDelimiter(char d, const QString &near) {
36  QString message = "Missing delimiter [" + toString(d) + "] at or near [";
37 
38  if(near.size() <= 20) {
39  message += near + "]";
40  }
41  else {
42  message += near.mid(0, 20) + " ...]";
43  }
44 
45  return message;
46 }
Namespace for the standard library.
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Definition: IString.cpp:226
QString MissingDelimiter(const char delimiter)
This error should be used when a delimiter is missing.