<div>What would you all think of using a bitmask for device class identification rather than using strings.&nbsp; This would have the advantage of using bit comparison (usually about&nbsp;1-4 cpu cycles or O(1)) rather than using string comparison (many cpu cycles per letter or O(x)).&nbsp; If using an unsigned integer this would allow us to have 16 different device classes but more importantly have multiple device contexts such as storage and camera in the same device.&nbsp; The code would look something like:
</div>
<div>&nbsp;</div>
<div>FakeDevice *dev;<br><br>&nbsp;&nbsp;&nbsp; // Initialise a fake system<br>&nbsp;&nbsp;&nbsp; dev = fakeManager-&gt;newDevice( &quot;/fake/doeseverything2000&quot; );<br>&nbsp;&nbsp;&nbsp; dev-&gt;addCapability(STORAGE_DEVICE | CAMERA_DEVICE | FLYING_MACHINE);</div>

<div>&nbsp;</div>
<div>Any thoughts?</div>
<div>Chris</div>