src/devices/csma/csma-net-device.h
changeset 1403 0286b806eee1
parent 1401 96a21130865c
child 1412 9ce52d4f530b
--- 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;
 };