22 lines
439 B
C++
22 lines
439 B
C++
// DiskDeviceIteration.h
|
|||
|
|
|
||
|
|
#ifndef _DISK_DEVICE_VISITOR_H
|
||
|
|
#define _DISK_DEVICE_VISITOR_H
|
||
|
|
|
||
|
|
class BDiskDevice;
|
||
|
|
class BPartition;
|
||
|
|
class BSession;
|
||
|
|
|
||
|
|
// BDiskDeviceVisitor
|
||
|
|
class BDiskDeviceVisitor {
|
||
|
|
BDiskDeviceVisitor();
|
||
|
|
virtual ~BDiskDeviceVisitor();
|
||
|
|
|
||
|
|
// return true to abort iteration
|
||
|
|
virtual bool Visit(BDiskDevice *device);
|
||
|
|
virtual bool Visit(BSession *device);
|
||
|
|
virtual bool Visit(BPartition *device);
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif _DISK_DEVICE_VISITOR_H
|