add TypeId::SetUid/GetUid
This commit is contained in:
@@ -664,6 +664,17 @@ TypeId::LookupTraceSourceByName (std::string name) const
|
||||
return 0;
|
||||
}
|
||||
|
||||
uint16_t
|
||||
TypeId::GetUid (void) const
|
||||
{
|
||||
return m_tid;
|
||||
}
|
||||
void
|
||||
TypeId::SetUid (uint16_t tid)
|
||||
{
|
||||
m_tid = tid;
|
||||
}
|
||||
|
||||
std::ostream & operator << (std::ostream &os, TypeId tid)
|
||||
{
|
||||
os << tid.GetName ();
|
||||
|
||||
@@ -258,6 +258,8 @@ public:
|
||||
bool LookupAttributeByName (std::string name, struct AttributeInfo *info) const;
|
||||
Ptr<const TraceSourceAccessor> LookupTraceSourceByName (std::string name) const;
|
||||
|
||||
uint16_t GetUid (void) const;
|
||||
void SetUid (uint16_t tid);
|
||||
|
||||
// construct an invalid TypeId.
|
||||
TypeId ();
|
||||
|
||||
Reference in New Issue
Block a user