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:
Oliver Ruiz Dorantes 2008-12-14 16:22:22 +00:00
parent 60581c6303
commit 515e878c43
2 changed files with 15 additions and 1 deletions

View File

@ -65,7 +65,9 @@ public:
void GetServiceClass(BString&);
void GetMajorDeviceClass(BString&);
void GetMinorDeviceClass(BString&);
void DumpDeviceClass(BString&);
private:
uint32 record;

View File

@ -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 << ".";
}
}