NEOCCA bindings Specification  0.2.8
ConnectionEvent.hh
Go to the documentation of this file.
1 #ifndef __neoConnectionEvent_H__
2 #define __neoConnectionEvent_H__
3 
4 #include <boost/shared_ptr.hpp>
5 
6 namespace neo {
7 namespace cca {
8 namespace ports {
9 
13 enum EventType {
14  Error = -1, // Someone got a bogus event object somehow.
15  ALL = 0, // Component wants to receive all event notices.
16  // ALL itself never received.
17  ConnectPending = 1, // A connection is about to be attempted.
18  Connected = 2, // A connection has been made.
19  DisconnectPending = 3, // A disconnection is about to be attempted.
20  Disconnected = 4, // A disconnection has been made.
21 };
22 
23 
28  public:
29 
31  virtual ~ConnectionEvent() {}
32 
34  virtual enum EventType getEventType()= 0;
35 
44  virtual TypeMap_shared getPortInfo()= 0;
45 };
46 
48 typedef boost::shared_ptr< ConnectionEvent > ConnectionEvent_shared;
49 
50 } // end namespace ports
51 } // end namespace cca
52 } // end namespace neo
53 #endif // __neoConnectionEvent_H__
virtual TypeMap_shared getPortInfo()=0
Get the properties of the affected Port.
boost::shared_ptr< TypeMap > TypeMap_shared
This (TypeMap_shared) is what everyone declares in component code and noone ever calls new on...
Definition: TypeMap.hh:14
virtual ~ConnectionEvent()
obligatory vdtor
Definition: ConnectionEvent.hh:31
Definition: ConnectionEvent.hh:19
An event passed around when connection activities occur.
Definition: ConnectionEvent.hh:27
Definition: ConnectionEvent.hh:15
virtual enum EventType getEventType()=0
return the event type.
boost::shared_ptr< ConnectionEvent > ConnectionEvent_shared
ConnectionEvents are always seen as shared_ptr objects of this sort.
Definition: ConnectionEvent.hh:48
EventType
The four stages of the connection process that others may need to be notified of. ...
Definition: ConnectionEvent.hh:13
Definition: ConnectionEvent.hh:17
Definition: ConnectionEvent.hh:14
Definition: ConnectionEvent.hh:18
Definition: ConnectionEvent.hh:20
This is neoclassic – the ::classic::gov::cca headers updated to be similar to the official CCA speci...
Definition: neocca.hh:62