-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVolume.h
More file actions
38 lines (33 loc) · 834 Bytes
/
Volume.h
File metadata and controls
38 lines (33 loc) · 834 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/** @file Volume.h
*
* Volume structure
*
* @author Copyright Aniesh Chawla, Sept 2006
**/
#ifndef VOLUME_H
#define VOLUME_H
#include "includes.h"
#include "Disk.h"
#include "FAT.h"
/** A Volume object associates a volume name with a formatted Disk.
*
* The Volume object contains a FAT and a reference to the Disk object.
**/
class Volume
{
private:
/// The volume name.
const char *name;
/// The FAT with the Disk reference.
FAT fat;
public:
/// Create a new named Volume (and FAT) for a formatted Disk object.
Volume(const char *name, Disk& disk);
~Volume();
/// Return the name of this volume.
const char *get_name() const;
/// Return a reference to the FAT of the Disk for this volume.
FAT& get_fat();
/* Volume& operator=(const Volume&);*/
};
#endif