Athena IO Library
WiiSave.hpp
1 #ifndef WIISAVE_HPP
2 #define WIISAVE_HPP
3 
4 #include <unordered_map>
5 #include <string>
6 #include "athena/Global.hpp"
7 
8 namespace athena
9 {
10 
11 class WiiFile;
12 class WiiBanner;
13 class WiiImage;
14 class BinaryReader;
15 class BinaryWriter;
16 
22 class WiiSave
23 {
24 public:
25 
29  typedef std::unordered_map<std::string, WiiFile*>::const_iterator FileIterator;
30 
34  WiiSave();
38  virtual ~WiiSave();
39 
45  void addFile(WiiFile* file);
46  void setRoot(WiiFile* root);
52  WiiFile* file(const std::string& filename);
53 
54  atUint32 fileCount() const;
59  WiiFile* root();
60 
65  void setBanner(WiiBanner* banner);
66 
71  WiiBanner* banner() const;
72 
73  std::vector<WiiFile*> allFiles() const;
74 
75 protected:
76 private:
77 
78  WiiFile* m_root;
79  WiiBanner* m_banner;
80 
81 };
82 
83 } // zelda
84 #endif // WIISAVE_HPP
WiiSave()
WiiSave.
Wii file container class.
Definition: WiiFile.hpp:20
WiiFile * root()
fileList
Wii banner container class.
Definition: WiiBanner.hpp:16
WiiBanner * banner() const
banner
std::unordered_map< std::string, WiiFile * >::const_iterator FileIterator
FileIterator.
Definition: WiiSave.hpp:29
void addFile(WiiFile *file)
addFile
Wii data.bin container class.
Definition: WiiSave.hpp:22
void setBanner(WiiBanner *banner)
setBanner
WiiFile * file(const std::string &filename)
file
virtual ~WiiSave()
~WiiSave