Loading [MathJax]/jax/output/NativeMML/config.js
Isis 3 Programmer Reference
AbstractNullDataItem.cpp
1 
7 /* SPDX-License-Identifier: CC0-1.0 */
8 
9 #include "IsisDebug.h"
10 
11 #include "AbstractNullDataItem.h"
12 
13 #include <QString>
14 #include <QVariant>
15 
16 #include "IException.h"
17 #include "IString.h"
18 
19 
20 namespace Isis {
21  AbstractNullDataItem::AbstractNullDataItem(AbstractTreeItem *parent)
22  : AbstractTreeItem(parent) {
23  }
24 
25 
26  AbstractNullDataItem::~AbstractNullDataItem() {
27  }
28 
29 
30  QVariant AbstractNullDataItem::getData() const {
31  return QVariant();
32  }
33 
34 
35  QVariant AbstractNullDataItem::getData(QString columnTitle) const {
36  return QVariant();
37  }
38 
39 
40  void AbstractNullDataItem::setData(QString const &columnTitle, QString const &newData) {
41  IString msg = "Cannot set data on an AbstractNullDataItem";
42  throw IException(IException::Programmer, msg, _FILEINFO_);
43  }
44 
45 
46  bool AbstractNullDataItem::isDataEditable(QString columnTitle) const {
47  return false;
48  }
49 
50 
51  void AbstractNullDataItem::deleteSource() {
52  IString msg = "deleteSource called on an AbstractNullDataItem";
53  throw IException(IException::Programmer, msg, _FILEINFO_);
54  }
55 
56 
57  AbstractTreeItem::InternalPointerType AbstractNullDataItem::getPointerType() const {
58  return AbstractTreeItem::None;
59  }
60 
61 
62  void *AbstractNullDataItem::getPointer() const {
63  return NULL;
64  }
65 
66 
67  bool AbstractNullDataItem::operator<(AbstractTreeItem const &other) const {
68  IString msg = "operator<() called on an AbstractNullDataItem";
69  throw IException(IException::Programmer, msg, _FILEINFO_);
70  }
71 
72 
73  void AbstractNullDataItem::sourceDeleted() {
74  }
75 }
Isis::IException::Programmer
@ Programmer
This error is for when a programmer made an API call that was illegal.
Definition: IException.h:146
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the USGS Astrogeology Discussion Board
To report a bug, or suggest a feature go to: ISIS Github
File Modified: 07/13/2023 15:16:03