1
// Copyright 2003 Jeremy Sawicki
3
// This file is part of OxydLib.
5
// OxydLib is free software; you can redistribute it and/or modify
6
// it under the terms of the GNU General Public License as published by
7
// the Free Software Foundation; either version 2 of the License, or
8
// (at your option) any later version.
10
// OxydLib is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
// GNU General Public License for more details.
15
// You should have received a copy of the GNU General Public License
16
// along with OxydLib; if not, write to the Free Software
17
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23
#include "OxydVersion.h"
38
bool getInit() const { return m_bInit; }
39
void setInit(bool bInit) { m_bInit = bInit; }
41
OxydVersion getVersion() const { return m_ver; }
42
void setVersion(OxydVersion ver) { m_ver = ver; }
44
const ByteVec &getCredits() const { return m_credits; }
45
ByteVec *getCreditsForWrite() { return &m_credits; }
47
const ByteVec &getCodes() const { return m_codes; }
48
ByteVec *getCodesForWrite() { return &m_codes; }
50
const ByteVec &getLevel(int nLevel) const { return m_levels[nLevel]; }
51
ByteVec *getLevelForWrite(int nLevel) { return &m_levels[nLevel]; }
53
void getChunkNames(std::set<std::string> *pChunkNames) const;
54
void addChunk(const std::string &chunkName);
55
void removeChunk(const std::string &chunkName);
57
const ByteVec *getChunk(const std::string &chunkName) const;
58
ByteVec *getChunkForWrite(const std::string &chunkName);
68
std::vector<ByteVec> m_levels;
70
typedef std::map<std::string, ByteVec> ChunkMap;
74
bool parseDatFile(const ByteVec &in,
77
std::string *pMsg = 0);
78
bool unparseDatFile(const DatFile &datFile,
80
std::string *pMsg = 0);