2 * Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
5 #ifndef _PARTITION_REFERENCE_H
6 #define _PARTITION_REFERENCE_H
8 #include <DiskDeviceDefs.h>
10 #include <Referenceable.h>
16 class PartitionReference
: public BReferenceable
{
18 PartitionReference(partition_id id
= -1,
19 int32 changeCounter
= 0);
20 ~PartitionReference();
22 void SetTo(partition_id id
, int32 changeCounter
);
24 partition_id
PartitionID() const;
25 void SetPartitionID(partition_id id
);
27 int32
ChangeCounter() const;
28 void SetChangeCounter(int32 counter
);
36 } // namespace BPrivate
38 using BPrivate::PartitionReference
;
40 #endif // _PARTITION_REFERENCE_H