File indexing completed on 2024-04-14 05:36:41

0001 //
0002 // C++ Implementation: flowconnector
0003 //
0004 // Description:
0005 //
0006 //
0007 // Author: David Saxton, Alan Grimes, Zoltan Padrah <zoltan.padrah@gmail.com>, (C) 2008
0008 //
0009 // Copyright: See COPYING file that comes with this distribution
0010 //
0011 //
0012 #include "flowconnector.h"
0013 
0014 #include "fpnode.h"
0015 
0016 FlowConnector::FlowConnector(FPNode *startNode, FPNode *endNode, ICNDocument *_ICNDocument, QString *id)
0017     : Connector(startNode, endNode, _ICNDocument, id)
0018 {
0019     m_startFpNode = startNode;
0020     m_endFpNode = endNode;
0021 }
0022 
0023 FlowConnector::~FlowConnector()
0024 {
0025 }
0026 
0027 Node *FlowConnector::startNode() const
0028 {
0029     FPNode *fpNode = m_startFpNode;
0030     Node *node = dynamic_cast<Node *>(fpNode);
0031     return node;
0032     // return static_cast<Node*> ( static_cast<FPNode*> (m_startFpNode) );
0033 }
0034 
0035 Node *FlowConnector::endNode() const
0036 {
0037     return m_endFpNode;
0038 }