Isis 3.0 Programmer Reference
Home
AbstractLeafItem.cpp
1 #include "IsisDebug.h"
2 
3 #include "AbstractLeafItem.h"
4 
5 #include "IException.h"
6 #include "IString.h"
7 
8 
9 namespace Isis {
10  namespace CnetViz {
11  AbstractLeafItem::AbstractLeafItem(AbstractTreeItem *parent) :
12  AbstractTreeItem(parent) {
13  }
14 
15 
16  AbstractLeafItem::~AbstractLeafItem() {
17  }
18 
19 
20  AbstractTreeItem *AbstractLeafItem::childAt(int row) const {
21  IString msg = "childAt() called on an AbstractLeafItem!";
22  throw IException(IException::Programmer, msg, _FILEINFO_);
23  }
24 
25 
26  QList< AbstractTreeItem * > AbstractLeafItem::getChildren() const {
27  IString msg = "getChildren() called on an AbstractLeafItem!";
28  throw IException(IException::Programmer, msg, _FILEINFO_);
29  }
30 
31 
32  int AbstractLeafItem::indexOf(AbstractTreeItem *child) const {
33  IString msg = "indexOf() called on an AbstractLeafItem!";
34  throw IException(IException::Programmer, msg, _FILEINFO_);
35  }
36 
37 
38  int AbstractLeafItem::childCount() const {
39  return 0;
40  }
41 
42 
43  void AbstractLeafItem::addChild(AbstractTreeItem *child) {
44  IString msg = "addChild() called on an AbstractLeafItem!";
45  throw IException(IException::Programmer, msg, _FILEINFO_);
46  }
47 
48 
49  AbstractTreeItem *AbstractLeafItem::getFirstVisibleChild() const {
50  return NULL;
51  }
52 
53 
54  AbstractTreeItem *AbstractLeafItem::getLastVisibleChild() const {
55  return NULL;
56  }
57 
58 
59  void AbstractLeafItem::setFirstVisibleChild(AbstractTreeItem *) {
60  IString msg = "setFirstVisibleChild() called on an AbstractLeafItem!";
61  throw IException(IException::Programmer, msg, _FILEINFO_);
62  }
63 
64 
65  void AbstractLeafItem::setLastVisibleChild(AbstractTreeItem *) {
66  IString msg = "setLastVisibleChild() called on an AbstractLeafItem!";
67  throw IException(IException::Programmer, msg, _FILEINFO_);
68  }
69  }
70 }
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