12 #include <QStringList>
20 m_kernelType =
static_cast<Type>(0);
58 QString strng = type.simplified().trimmed().toUpper();
59 if (strng ==
"PREDICTED")
return Predicted;
60 if (strng ==
"NADIR")
return Nadir;
61 if (strng ==
"RECONSTRUCTED")
return Reconstructed;
62 if (strng ==
"SMITHED")
return Smithed;
80 const char *Kernel::typeEnum(
const Type &type) {
81 if (type == Predicted)
return "Predicted";
82 if (type == Nadir)
return "Nadir";
83 if (type == Reconstructed)
return "Reconstructed";
84 if (type == Smithed)
return "Smithed";
117 void Kernel::setType(
const Type &type) {
126 return m_kernels.size();
133 void Kernel::push_back(
const QString &str) {
134 m_kernels.push_back(str);
144 QString &Kernel::operator[](
const int index) {
145 return m_kernels[index];
156 QString Kernel::operator[](
const int index)
const {
157 return m_kernels[index];
168 bool Kernel::operator<(
const Kernel &other)
const {
182 return static_cast<Kernel::Type>(
static_cast<int>(a) |
static_cast<int>(b));