Add method to dump all DeviceClass information in one single string
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28814 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
60581c6303
commit
515e878c43
@ -65,7 +65,9 @@ public:
|
||||
void GetServiceClass(BString&);
|
||||
void GetMajorDeviceClass(BString&);
|
||||
void GetMinorDeviceClass(BString&);
|
||||
|
||||
|
||||
void DumpDeviceClass(BString&);
|
||||
|
||||
private:
|
||||
uint32 record;
|
||||
|
||||
|
@ -314,8 +314,20 @@ DeviceClass::GetMinorDeviceClass(BString& minorClass)
|
||||
minorClass << "Unknown (reserved) minor device class";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
DeviceClass::DumpDeviceClass(BString& string)
|
||||
{
|
||||
|
||||
GetServiceClass(string);
|
||||
string << " | ";
|
||||
GetMajorDeviceClass(string);
|
||||
string << " | ";
|
||||
GetMinorDeviceClass(string);
|
||||
string << ".";
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user