Modified the visitor implementation a bit. The Visit() with the BPartition* argument now also gets the level of the partition in the hierarchy.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3900 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2003-07-08 18:26:15 +00:00
parent c54d68a84e
commit 671a745561
10 changed files with 134 additions and 90 deletions
+3 -3
View File
@@ -16,7 +16,7 @@ namespace BPrivate {
// PartitionFilter
class PartitionFilter {
public:
virtual bool Filter(BPartition *partition) = 0;
virtual bool Filter(BPartition *partition, int32 level) = 0;
};
// PartitionFilterVisitor
@@ -26,7 +26,7 @@ public:
PartitionFilter *filter);
virtual bool Visit(BDiskDevice *device);
virtual bool Visit(BPartition *partition);
virtual bool Visit(BPartition *partition, int32 level);
private:
BDiskDeviceVisitor *fVisitor;
@@ -39,7 +39,7 @@ public:
IDFinderVisitor(partition_id id);
virtual bool Visit(BDiskDevice *device);
virtual bool Visit(BPartition *partition);
virtual bool Visit(BPartition *partition, int32 level);
private:
partition_id fID;