00001 #include "headers.h" 00002 00003 ConnectionTableEntry::ConnectionTableEntry() { 00004 m_node = NULL; 00005 m_connection = NULL; 00006 } // ctor 00007 00008 00009 ConnectionTableEntry::ConnectionTableEntry(ConnectionInterface* connection, Node* node) { 00010 m_connection = connection; 00011 m_node = node; 00012 m_connection->registerListener(m_node); 00013 } 00014 00015 00016 ConnectionTableEntry::~ConnectionTableEntry() { 00017 delete m_connection; 00018 } // dtor 00019 00020 00021 ConnectionInterface* 00022 ConnectionTableEntry::getConnection() { 00023 return m_connection; 00024 } // fn getConnection 00025 00026 00027 /* 00028 void 00029 ConnectionTableEntry::setConnection(ConnectionInterface* value) { 00030 m_connection = value; 00031 } // fn setConnection 00032 */ 00033 00034 00035 Node* 00036 ConnectionTableEntry::getNode() { 00037 return m_node; 00038 } // fn getNode 00039 00040 /* 00041 void 00042 ConnectionTableEntry::setNode(Node* value) { 00043 m_node = value; 00044 } // fn setNode 00045 */