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