--- a/src/devices/csma/csma-net-device.h Thu Aug 30 14:42:38 2007 +0200
+++ b/src/devices/csma/csma-net-device.h Thu Aug 30 14:54:05 2007 +0200
@@ -41,6 +41,9 @@
class Queue;
class CsmaChannel;
+/**
+ * \brief hold in a TraceContext the type of trace source from a CsmaNetDevice
+ */
class CsmaTraceType : public TraceContextElement
{
public:
@@ -53,6 +56,10 @@
void Print (std::ostream &os) const;
static uint16_t GetUid (void);
std::string GetTypeName (void) const;
+ /**
+ * \returns the type of the trace source which generated an event.
+ */
+ enum Type Get (void) const;
private:
enum Type m_type;
};