Re: My Usual Confusion
"Axel Dörfler" <[email protected]>
| Newsgroups | gmane.os.openbeos.storage |
|---|---|
| Message-ID | <550796249-BeMail@nichtsnutz> |
Tyler Dauwalder <tyler-cyCl/[email protected]> wrote: > > PS: How about a BPartition::GetDiskSystem(BDiskSystem*)? Then > > BPartition::ContentType() wouldn't even need to have any strong > > relationship with the disk system's (pretty) name. > Having seen the way types would need to laid down using the > Type()/ContentType() system, I'd actually much rather just go back to > using Type() only (semantically like our current ContentType()) than > do > this. Though a GetDiskSystem() call could still be useful. > > What do you think? :-) What about leaving ContentType() to what it is now and change Type() so that you can use the partition type in a switch case statement like: switch (partition->Type()) { case BPartition::B_FILE_SYSTEM_TYPE: ... break; case BPartition::B_PARTITION_SYSTEM_TYPE: ... break; } ? BTW is there any way to get to a partition without a disk system object at all? If so, GetDiskSystem() would not only be useful, I think. Adios... Axel.