Isis 3 Programmer Reference
AbstractLeafItem.cpp
1 
7 /* SPDX-License-Identifier: CC0-1.0 */
8 
9 #include "IsisDebug.h"
10 
11 #include "AbstractLeafItem.h"
12 
13 #include "IException.h"
14 #include "IString.h"
15 
16 
17 namespace Isis {
18  AbstractLeafItem::AbstractLeafItem(AbstractTreeItem *parent) :
19  AbstractTreeItem(parent) {
20  }
21 
22 
23  AbstractLeafItem::~AbstractLeafItem() {
24  }
25 
26 
27  AbstractTreeItem *AbstractLeafItem::childAt(int row) const {
28  IString msg = "childAt() called on an AbstractLeafItem!";
29  throw IException(IException::Programmer, msg, _FILEINFO_);
30  }
31 
32 
33  QList< AbstractTreeItem * > AbstractLeafItem::getChildren() const {
34  IString msg = "getChildren() called on an AbstractLeafItem!";
35  throw IException(IException::Programmer, msg, _FILEINFO_);
36  }
37 
38 
39  int AbstractLeafItem::indexOf(AbstractTreeItem *child) const {
40  IString msg = "indexOf() called on an AbstractLeafItem!";
41  throw IException(IException::Programmer, msg, _FILEINFO_);
42  }
43 
44 
45  int AbstractLeafItem::childCount() const {
46  return 0;
47  }
48 
49 
50  void AbstractLeafItem::addChild(AbstractTreeItem *child) {
51  IString msg = "addChild() called on an AbstractLeafItem!";
52  throw IException(IException::Programmer, msg, _FILEINFO_);
53  }
54 
55 
56  AbstractTreeItem *AbstractLeafItem::getFirstVisibleChild() const {
57  return NULL;
58  }
59 
60 
61  AbstractTreeItem *AbstractLeafItem::getLastVisibleChild() const {
62  return NULL;
63  }
64 
65 
66  void AbstractLeafItem::setFirstVisibleChild(AbstractTreeItem *) {
67  IString msg = "setFirstVisibleChild() called on an AbstractLeafItem!";
68  throw IException(IException::Programmer, msg, _FILEINFO_);
69  }
70 
71 
72  void AbstractLeafItem::setLastVisibleChild(AbstractTreeItem *) {
73  IString msg = "setLastVisibleChild() called on an AbstractLeafItem!";
74  throw IException(IException::Programmer, msg, _FILEINFO_);
75  }
76 }
QList
This is free and unencumbered software released into the public domain.
Definition: BoxcarCachingAlgorithm.h:13
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