Added KPartitionVisitor class used for advanced partition tree traversal.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4219 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
1d5920700f
commit
7e4c7d4350
@ -0,0 +1,27 @@
|
||||
// KPartitionVisitor.h
|
||||
|
||||
#ifndef _K_DISK_DEVICE_PARTITION_VISITOR_H
|
||||
#define _K_DISK_DEVICE_PARTITION_VISITOR_H
|
||||
|
||||
#include "disk_device_manager.h"
|
||||
|
||||
namespace BPrivate {
|
||||
namespace DiskDevice {
|
||||
|
||||
class KPartition;
|
||||
|
||||
class KPartitionVisitor {
|
||||
public:
|
||||
KPartitionVisitor();
|
||||
virtual ~KPartitionVisitor();
|
||||
|
||||
virtual bool VisitPre(KPartition *partition);
|
||||
virtual bool VisitPost(KPartition *partition);
|
||||
};
|
||||
|
||||
} // namespace DiskDevice
|
||||
} // namespace BPrivate
|
||||
|
||||
using BPrivate::DiskDevice::KPartitionVisitor;
|
||||
|
||||
#endif // _K_DISK_DEVICE_PARTITION_VISITOR_H
|
@ -24,6 +24,7 @@ SharedLibrary disk_device_manager :
|
||||
KFileSystem.cpp
|
||||
KPartition.cpp
|
||||
KPartitioningSystem.cpp
|
||||
KPartitionVisitor.cpp
|
||||
KPhysicalPartition.cpp
|
||||
KShadowPartition.cpp
|
||||
UserDataWriter.cpp
|
||||
|
28
src/kernel/core/disk_device_manager/KPartitionVisitor.cpp
Normal file
28
src/kernel/core/disk_device_manager/KPartitionVisitor.cpp
Normal file
@ -0,0 +1,28 @@
|
||||
// KPartitionVisitor.cpp
|
||||
|
||||
#include "KPartitionVisitor.h"
|
||||
|
||||
// constructor
|
||||
KPartitionVisitor::KPartitionVisitor()
|
||||
{
|
||||
}
|
||||
|
||||
// destructor
|
||||
KPartitionVisitor::~KPartitionVisitor()
|
||||
{
|
||||
}
|
||||
|
||||
// VisitPre
|
||||
bool
|
||||
KPartitionVisitor::VisitPre(KPartition *partition)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// VisitPost
|
||||
bool
|
||||
KPartitionVisitor::VisitPost(KPartition *partition)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user