1 /* 2 * Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef _PARTITION_REFERENCE_H 6 #define _PARTITION_REFERENCE_H 7 8 #include <DiskDeviceDefs.h> 9 10 #include <Referenceable.h> 11 12 13 namespace BPrivate { 14 15 16 class PartitionReference : public BReferenceable { 17 public: 18 PartitionReference(partition_id id = -1, 19 int32 changeCounter = 0); 20 ~PartitionReference(); 21 22 void SetTo(partition_id id, int32 changeCounter); 23 24 partition_id PartitionID() const; 25 void SetPartitionID(partition_id id); 26 27 int32 ChangeCounter() const; 28 void SetChangeCounter(int32 counter); 29 30 private: 31 partition_id fID; 32 int32 fChangeCounter; 33 }; 34 35 36 } // namespace BPrivate 37 38 using BPrivate::PartitionReference; 39 40 #endif // _PARTITION_REFERENCE_H 41