Debian Codegraph @

components/verifier/accuraterip/driveoffsets.h

raw symbols SCIP
1 /* fre:ac - free audio converter
2 * Copyright (C) 2001-2021 Robert Kausch <[email protected]>
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation, either version 2 of
7 * the License, or (at your option) any later version.
8 *
9 * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
10 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
11 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */
12
13 #ifndef H_DRIVEOFFSETS
14 #define H_DRIVEOFFSETS
15
16 #include <boca.h>
17
18 namespace BoCA
19 {
20 class DriveOffset
21 {
22 public:
23 static const Int Invalid = 0x0FFFFFFF;
24
25 String vendor;
26 String model;
27
28 Int offset;
29
30 DriveOffset(Int = 0) : offset(Invalid) { }
31 ~DriveOffset() { }
32 };
33
34 class DriveOffsets
35 {
36 private:
37 static DriveOffsets *instance;
38
39 DriveOffsets();
40 ~DriveOffsets();
41
42 Array<DriveOffset> driveOffsets;
43
44 Bool LoadDriveOffsets();
45 public:
46 const DriveOffset &FindDriveOffset(const Device &);
47
48 static DriveOffsets *Get();
49 static Void Free();
50 };
51 };
52
53 #endif