add TraceContextElement::GetName method
This commit is contained in:
@@ -50,6 +50,11 @@ NodeListIndex::Get (void) const
|
||||
{
|
||||
return m_index;
|
||||
}
|
||||
std::string
|
||||
NodeListIndex::GetName (void) const
|
||||
{
|
||||
return "NodeListIndex";
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -39,6 +39,7 @@ public:
|
||||
void Print (std::ostream &os);
|
||||
static uint16_t GetUid (void);
|
||||
uint32_t Get (void) const;
|
||||
std::string GetName (void) const;
|
||||
private:
|
||||
uint32_t m_index;
|
||||
};
|
||||
|
||||
@@ -52,6 +52,11 @@ NodeNetDeviceIndex::GetUid (void)
|
||||
static uint16_t uid = AllocateUid<NodeNetDeviceIndex> ("NodeNetDeviceIndex");
|
||||
return uid;
|
||||
}
|
||||
std::string
|
||||
NodeNetDeviceIndex::GetName (void) const
|
||||
{
|
||||
return "NodeNetDeviceIndex";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -44,6 +44,7 @@ public:
|
||||
NodeNetDeviceIndex (uint32_t index);
|
||||
uint32_t Get (void) const;
|
||||
void Print (std::ostream &os) const;
|
||||
std::string GetName (void) const;
|
||||
static uint16_t GetUid (void);
|
||||
private:
|
||||
uint32_t m_index;
|
||||
|
||||
@@ -32,6 +32,11 @@ static ClassIdDefaultValue g_classIdDefaultValue ("Queue", "Packet Queue",
|
||||
Queue::iid, "DropTailQueue");
|
||||
|
||||
|
||||
std::string
|
||||
QueueTraceType::GetName (void) const
|
||||
{
|
||||
return "QueueTraceType";
|
||||
}
|
||||
uint16_t
|
||||
QueueTraceType::GetUid (void)
|
||||
{
|
||||
|
||||
@@ -52,6 +52,7 @@ public:
|
||||
bool IsDequeue (void) const;
|
||||
bool IsDrop (void) const;
|
||||
void Print (std::ostream &os) const;
|
||||
std::string GetName (void) const;
|
||||
private:
|
||||
enum Type m_type;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user