16 #ifndef __OMNETPP_CLISTENER_H 17 #define __OMNETPP_CLISTENER_H 19 #include "simtime_t.h" 36 #define SIMSIGNAL_NULL ((omnetpp::simsignal_t)-1) 91 virtual void receiveSignal(
cComponent *source, simsignal_t signalID,
bool b,
cObject *details) = 0;
94 virtual void receiveSignal(
cComponent *source, simsignal_t signalID,
long l,
cObject *details) = 0;
97 virtual void receiveSignal(
cComponent *source, simsignal_t signalID,
unsigned long l,
cObject *details) = 0;
100 virtual void receiveSignal(
cComponent *source, simsignal_t signalID,
double d,
cObject *details) = 0;
106 virtual void receiveSignal(
cComponent *source, simsignal_t signalID,
const char *s,
cObject *details) = 0;
163 virtual void unsupportedType(simsignal_t signalID,
const char *dataType);
165 #ifdef WITH_OMNETPP4x_LISTENER_SUPPORT 166 virtual void receiveSignal(
cComponent *source, simsignal_t signalID,
bool b);
167 virtual void receiveSignal(
cComponent *source, simsignal_t signalID,
long l);
168 virtual void receiveSignal(
cComponent *source, simsignal_t signalID,
unsigned long l);
169 virtual void receiveSignal(
cComponent *source, simsignal_t signalID,
double d);
170 virtual void receiveSignal(
cComponent *source, simsignal_t signalID,
const SimTime& t);
171 virtual void receiveSignal(
cComponent *source, simsignal_t signalID,
const char *s);
172 virtual void receiveSignal(
cComponent *source, simsignal_t signalID,
cObject *obj);
176 virtual void receiveSignal(
cComponent *source, simsignal_t signalID,
bool b,
cObject *details)
override;
177 virtual void receiveSignal(
cComponent *source, simsignal_t signalID,
long l,
cObject *details)
override;
178 virtual void receiveSignal(
cComponent *source, simsignal_t signalID,
unsigned long l,
cObject *details)
override;
179 virtual void receiveSignal(
cComponent *source, simsignal_t signalID,
double d,
cObject *details)
override;
181 virtual void receiveSignal(
cComponent *source, simsignal_t signalID,
const char *s,
cObject *details)
override;
Common base for module and channel classes.
Definition: ccomponent.h:48
Root of the OMNeT++ class hierarchy. cObject is a lightweight class without any data members...
Definition: cobject.h:58
int64_t-based, base-10 fixed-point simulation time.
Definition: simtime.h:66
virtual void finish(cComponent *component, simsignal_t signalID)
Definition: clistener.h:118
virtual void subscribedTo(cComponent *component, simsignal_t signalID)
Definition: clistener.h:125
int getSubscribeCount() const
Definition: clistener.h:147
Base class for result filters.
Definition: cresultfilter.h:72
Definition: cabstracthistogram.h:21
A do-nothing implementation of cIListener, suitable as a base class for other listeners.
Definition: clistener.h:159
SimsignalType
Signal data types.
Definition: clistener.h:44
Interface for listeners in a simulation model.
Definition: clistener.h:66
virtual void unsubscribedFrom(cComponent *component, simsignal_t signalID)
Definition: clistener.h:142
int simsignal_t
Signal handle.
Definition: clistener.h:24