Athena IO Library
MCFileReader.hpp
1 #ifndef ATHENA_NO_SAVES
2 // This file is part of libAthena.
3 //
4 // libAthena is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // libAthena is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with libAthena. If not, see <http://www.gnu.org/licenses/>
16 
17 #ifndef MCFILEREADER_HPP
18 #define MCFILEREADER_HPP
19 
20 #include "Athena/MemoryReader.hpp"
21 
22 namespace Athena
23 {
24 
25 class MCFile;
26 
27 namespace io
28 {
29 
37 class MCFileReader : public MemoryReader
38 {
39  MEMORYREADER_BASE();
40 public:
47  MCFileReader(atUint8*, atUint64);
48 
54  MCFileReader(const std::string&);
55 
61  MCFile* readFile();
62 };
63 
64 } // io
65 } // zelda
66 
67 #endif // MCFILEREADER_HPP
68 #endif // ATHENA_NO_SAVES
The Minish Cap Save save data reader class.
MCFileReader(atUint8 *, atUint64)
This constructor takes an existing buffer to read from.
The Minish Cap data container class class.
Definition: MCFile.hpp:31
MCFile * readFile()
Reads the save data from the buffer.