Isis 3 Programmer Reference
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  AbstractNullDataItem::AbstractNullDataItem(AbstractTreeItem *parent)
14  : AbstractTreeItem(parent) {
15  }
16 
17 
18  AbstractNullDataItem::~AbstractNullDataItem() {
19  }
20 
21 
22  QVariant AbstractNullDataItem::getData() const {
23  return QVariant();
24  }
25 
26 
27  QVariant AbstractNullDataItem::getData(QString columnTitle) const {
28  return QVariant();
29  }
30 
31 
32  void AbstractNullDataItem::setData(QString const &columnTitle, QString const &newData) {
33  IString msg = "Cannot set data on an AbstractNullDataItem";
34  throw IException(IException::Programmer, msg, _FILEINFO_);
35  }
36 
37 
38  bool AbstractNullDataItem::isDataEditable(QString columnTitle) const {
39  return false;
40  }
41 
42 
43  void AbstractNullDataItem::deleteSource() {
44  IString msg = "deleteSource called on an AbstractNullDataItem";
45  throw IException(IException::Programmer, msg, _FILEINFO_);
46  }
47 
48 
49  AbstractTreeItem::InternalPointerType AbstractNullDataItem::getPointerType() const {
50  return AbstractTreeItem::None;
51  }
52 
53 
54  void *AbstractNullDataItem::getPointer() const {
55  return NULL;
56  }
57 
58 
59  bool AbstractNullDataItem::operator<(AbstractTreeItem const &other) const {
60  IString msg = "operator<() called on an AbstractNullDataItem";
61  throw IException(IException::Programmer, msg, _FILEINFO_);
62  }
63 
64 
65  void AbstractNullDataItem::sourceDeleted() {
66  }
67 }
This error is for when a programmer made an API call that was illegal.
Definition: IException.h:162
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:40
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31