1/* 2** Copyright 2003, Axel D��rfler, axeld@pinc-software.de. All rights reserved. 3** Distributed under the terms of the MIT License. 4*/ 5#ifndef VOLUME_H 6#define VOLUME_H 7 8 9#include "amiga_ffs.h" 10 11#include <SupportDefs.h> 12 13namespace boot { 14 class Partition; 15} 16 17 18namespace FFS { 19 20class Directory; 21 22class Volume { 23 public: 24 Volume(boot::Partition *partition); 25 ~Volume(); 26 27 status_t InitCheck(); 28 29 int Device() const { return fDevice; } 30 Directory *Root() { return fRoot; } 31 int32 Type() const { return fType; } 32 int32 BlockSize() const { return fRootNode.BlockSize(); } 33 34 protected: 35 int fDevice; 36 int32 fType; 37 RootBlock fRootNode; 38 Directory *fRoot; 39}; 40 41} // namespace FFS 42 43#endif /* VOLUME_H */ 44