Isis 3.0 Programmer Reference
Back | Home
AbstractNullDataItem.cpp
1 #include "IsisDebug.h"
2 
3 #include "AbstractNullDataItem.h"
4 
5 #include <QString>
6 #include <QVariant>
7 
8 #include "IException.h"
9 #include "IString.h"
10 
11 
12 namespace Isis {
13  namespace CnetViz {
14  AbstractNullDataItem::AbstractNullDataItem(AbstractTreeItem *parent)
15  : AbstractTreeItem(parent) {
16  }
17 
18 
19  AbstractNullDataItem::~AbstractNullDataItem() {
20  }
21 
22 
23  QVariant AbstractNullDataItem::getData() const {
24  return QVariant();
25  }
26 
27 
28  QVariant AbstractNullDataItem::getData(QString columnTitle) const {
29  return QVariant();
30  }
31 
32 
33  void AbstractNullDataItem::setData(QString const &columnTitle, QString const &newData) {
34  IString msg = "Cannot set data on an AbstractNullDataItem";
35  throw IException(IException::Programmer, msg, _FILEINFO_);
36  }
37 
38 
39  bool AbstractNullDataItem::isDataEditable(QString columnTitle) const {
40  return false;
41  }
42 
43 
44  void AbstractNullDataItem::deleteSource() {
45  IString msg = "deleteSource called on an AbstractNullDataItem";
46  throw IException(IException::Programmer, msg, _FILEINFO_);
47  }
48 
49 
50  AbstractTreeItem::InternalPointerType AbstractNullDataItem::getPointerType() const {
51  return AbstractTreeItem::None;
52  }
53 
54 
55  void *AbstractNullDataItem::getPointer() const {
56  return NULL;
57  }
58 
59 
60  bool AbstractNullDataItem::operator<(AbstractTreeItem const &other) const {
61  IString msg = "operator<() called on an AbstractNullDataItem";
62  throw IException(IException::Programmer, msg, _FILEINFO_);
63  }
64 
65 
66  void AbstractNullDataItem::sourceDeleted() {
67  }
68  }
69 }
This error is for when a programmer made an API call that was illegal.
Definition: IException.h:154
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:38

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 ISIS Support Center
File Modified: 07/12/2023 23:13:39