Athena IO Library
ZQuestFileWriter.hpp
1 #ifndef ATHENA_NO_ZQUEST
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 __ZQUESTFILEWRITER_HPP__
18 #define __ZQUESTFILEWRITER_HPP__
19 
20 #include "athena/MemoryWriter.hpp"
21 
22 namespace athena
23 {
24 class ZQuestFile;
25 
26 namespace io
27 {
28 
33 {
34  MEMORYCOPYWRITER_BASE();
35 
36 public:
42  ZQuestFileWriter(atUint8* data, atUint64 length);
43 
48  ZQuestFileWriter(const std::string& filename);
49 
55  void write(ZQuestFile* quest, bool compress = true);
56 };
57 
58 } // io
59 } // zelda
60 #endif // __ZQUESTFILEWRITER_HPP__
61 
62 #endif // ATHENA_NO_ZQUEST
atUint8 * data() const
Returns a copy of the current buffer. Changes to the copy do not affect the buffer so it&#39;s perfectly...
atUint64 length() const
Returns the length of the stream.
ZQuestFile is an export format for save data.
Definition: ZQuestFile.hpp:34
ZQuestFileWriter(atUint8 *data, atUint64 length)
ZQuestFileWriter.
The ZQuestFileWriter class.
void write(ZQuestFile *quest, bool compress=true)
write