1 //---------------------------------------------------------------------- 2 // This software is part of the OpenBeOS distribution and is covered 3 // by the OpenBeOS license. 4 // 5 // Copyright (c) 2003 Tyler Dauwalder, tyler@dauwalder.net 6 //--------------------------------------------------------------------- 7 #ifndef _UDF_PARTITION_H 8 #define _UDF_PARTITION_H 9 10 /*! \file Partition.h 11 */ 12 13 #include <SupportDefs.h> 14 15 namespace Udf { 16 17 /*! \brief Abstract base class for various UDF partition types. 18 */ 19 class Partition { 20 public: 21 virtual ~Partition() {} 22 virtual status_t MapBlock(uint32 logicalBlock, off_t &physicalBlock) = 0; 23 // virtual status_t MapExtent(uint32 logicalBlock, uint32 logicalLength, 24 // uint32 &physicalBlock, uint32 &physicalLength) = 0; 25 }; 26 27 }; // namespace Udf 28 29 #endif // _UDF_PARTITION_H 30