IBR-DTNSuite  0.10
LinkEvent.h
Go to the documentation of this file.
1 /*
2  * LinkEvent.h
3  *
4  * Created on: 11.10.2012
5  * Author: morgenro
6  */
7 
8 #ifndef LINKEVENT_H_
9 #define LINKEVENT_H_
10 
12 #include "ibrcommon/net/vaddress.h"
13 
14 namespace ibrcommon
15 {
16  class LinkEvent
17  {
18  public:
19  enum Action
20  {
27  };
28 
29  LinkEvent(Action action, const vinterface &iface, const vaddress &addr);
30  virtual ~LinkEvent();
31 
32  virtual const vinterface& getInterface() const;
33  virtual const vaddress& getAddress() const;
34  virtual Action getAction() const;
35 
36  virtual std::string toString() const;
37 
38  private:
39  Action _action;
40  const vinterface _iface;
41  const vaddress _addr;
42  };
43 
44 } /* namespace ibrcommon */
45 #endif /* LINKEVENT_H_ */