Changeset 3690 for source/ariba/overlay/modules/OverlayInterface.cpp
- Timestamp:
- May 26, 2009, 1:40:23 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/modules/OverlayInterface.cpp
r3057 r3690 1 // [Licen ce]1 // [License] 2 2 // The Ariba-Underlay Copyright 3 3 // … … 35 35 // official policies, either expressed or implied, of the Institute of 36 36 // Telematics. 37 // [Licen ce]37 // [License] 38 38 39 39 #include "OverlayInterface.h" 40 40 #include "ariba/overlay/BaseOverlay.h" 41 41 42 // namespace ariba::overlay 42 43 namespace ariba { 43 44 namespace overlay { 44 45 45 ServiceID OverlayInterface::OVERLAY_SERVICE_ID 46 ServiceID OverlayInterface::OVERLAY_SERVICE_ID(0); 46 47 47 OverlayInterface::OverlayInterface( 48 BaseOverlay& _baseoverlay, 49 const NodeID& _nodeid, 50 OverlayStructureEvents* _eventsReceiver ) 51 : baseoverlay( _baseoverlay ), 52 nodeid( _nodeid ), 53 eventsReceiver( _eventsReceiver ) { 48 OverlayInterface::OverlayInterface(BaseOverlay& _baseoverlay, 49 const NodeID& _nodeid, OverlayStructureEvents* _eventsReceiver) : 50 baseoverlay(_baseoverlay), nodeid(_nodeid), eventsReceiver(_eventsReceiver) { 54 51 55 _baseoverlay.bind( this, OVERLAY_SERVICE_ID);52 _baseoverlay.bind(this, OVERLAY_SERVICE_ID); 56 53 } 57 54 58 OverlayInterface::~OverlayInterface() {59 baseoverlay.unbind( this, OVERLAY_SERVICE_ID);55 OverlayInterface::~OverlayInterface() { 56 baseoverlay.unbind(this, OVERLAY_SERVICE_ID); 60 57 } 61 58 62 void OverlayInterface::onLinkUp(const LinkID& lnk, const NodeID& remote) {59 void OverlayInterface::onLinkUp(const LinkID& lnk, const NodeID& remote) { 63 60 } 64 61 65 void OverlayInterface::onLinkDown(const LinkID& lnk, const NodeID& remote) {62 void OverlayInterface::onLinkDown(const LinkID& lnk, const NodeID& remote) { 66 63 } 67 64 68 void OverlayInterface::onLinkChanged(const LinkID& lnk, const NodeID& remote) {65 void OverlayInterface::onLinkChanged(const LinkID& lnk, const NodeID& remote) { 69 66 } 70 67 71 void OverlayInterface::onLinkFail(const LinkID& lnk, const NodeID& remote) {68 void OverlayInterface::onLinkFail(const LinkID& lnk, const NodeID& remote) { 72 69 } 73 70 74 void OverlayInterface::onLinkQoSChanged(const LinkID& lnk, const NodeID& remote, const LinkProperties& prop){ 71 void OverlayInterface::onLinkQoSChanged(const LinkID& lnk, 72 const NodeID& remote, const LinkProperties& prop) { 75 73 } 76 74 77 bool OverlayInterface::onLinkRequest(const NodeID& remote, const DataMessage& msg){ 75 bool OverlayInterface::onLinkRequest(const NodeID& remote, 76 const DataMessage& msg) { 78 77 } 79 78 80 void OverlayInterface::onMessage(const DataMessage& msg, const NodeID& remote, const LinkID& lnk){ 79 void OverlayInterface::onMessage(const DataMessage& msg, const NodeID& remote, 80 const LinkID& lnk) { 81 81 } 82 82
Note:
See TracChangeset
for help on using the changeset viewer.