Isis 3 Programmer Reference
ConnectionParentItem.cpp
1 #include "IsisDebug.h"
2 
3 #include "ConnectionParentItem.h"
4 
5 #include "ImageParentItem.h"
6 
7 
8 namespace Isis {
9  ConnectionParentItem::ConnectionParentItem(QString imageSerial, ControlNet *net,
10  int avgCharWidth, AbstractTreeItem *parent)
11  : AbstractTreeItem(parent), AbstractImageItem(imageSerial, net, avgCharWidth) {
12  }
13 
14 
15  ConnectionParentItem::~ConnectionParentItem() {
16  }
17 
18 
19  void ConnectionParentItem::addChild(AbstractTreeItem *child) {
20  // Only ImageParentItems should be children of ConnectionParentItems
21  ASSERT(dynamic_cast< ImageParentItem * >(child));
22 
23  AbstractParentItem::addChild(child);
24  }
25 }
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31