liblcf
ldb_reader.h
Go to the documentation of this file.
1 /*
2  * This file is part of liblcf. Copyright (c) 2020 liblcf authors.
3  * https://github.com/EasyRPG/liblcf - https://easyrpg.org
4  *
5  * liblcf is Free/Libre Open Source Software, released under the MIT License.
6  * For the full copyright and license information, please view the COPYING
7  * file that was distributed with this source code.
8  */
9 
10 #ifndef LCF_LDB_READER_H
11 #define LCF_LDB_READER_H
12 
13 #include <string>
14 #include <vector>
15 #include "rpg_actor.h"
16 #include "rpg_skill.h"
17 #include "rpg_item.h"
18 #include "rpg_enemy.h"
19 #include "rpg_troop.h"
20 #include "rpg_attribute.h"
21 #include "rpg_state.h"
22 #include "rpg_terrain.h"
23 #include "rpg_chipset.h"
24 #include "rpg_animation.h"
25 #include "rpg_terms.h"
26 #include "rpg_system.h"
27 #include "rpg_commonevent.h"
28 #include "rpg_music.h"
29 #include "rpg_sound.h"
30 #include "rpg_class.h"
31 #include "rpg_battlecommand.h"
32 #include "rpg_battleranimation.h"
34 #include "rpg_itemanimation.h"
35 #include "rpg_parameters.h"
36 #include "rpg_equipment.h"
37 #include "rpg_database.h"
38 #include "lcf_saveopt.h"
39 
43 namespace LDB_Reader {
47  void PrepareSave(RPG::Database& db);
48 
52  bool Load(const std::string& filename, const std::string& encoding);
53 
57  bool Save(const std::string& filename, const std::string& encoding, SaveOpt opt = SaveOpt::eNone);
58 
62  bool SaveXml(const std::string& filename);
63 
67  bool LoadXml(const std::string& filename);
68 
72  bool Load(std::istream& filestream, const std::string& encoding);
73 
77  bool Save(std::ostream& filestream, const std::string& encoding, SaveOpt opt = SaveOpt::eNone);
78 
82  bool SaveXml(std::ostream& filestream);
83 
87  bool LoadXml(std::istream& filestream);
88 }
89 
90 #endif
rpg_parameters.h
LDB_Reader::Save
bool Save(const std::string &filename, const std::string &encoding, SaveOpt opt=SaveOpt::eNone)
Definition: ldb_reader.cpp:33
rpg_equipment.h
LDB_Reader::SaveXml
bool SaveXml(const std::string &filename)
Definition: ldb_reader.cpp:42
LDB_Reader::Load
bool Load(const std::string &filename, const std::string &encoding)
Definition: ldb_reader.cpp:24
rpg_battleranimation.h
rpg_music.h
rpg_troop.h
SaveOpt::eNone
@ eNone
SaveOpt
SaveOpt
Definition: lcf_saveopt.h:16
rpg_animation.h
rpg_terrain.h
rpg_attribute.h
rpg_commonevent.h
lcf_saveopt.h
rpg_battleranimationdata.h
rpg_itemanimation.h
rpg_database.h
rpg_class.h
rpg_skill.h
rpg_state.h
rpg_actor.h
LDB_Reader::PrepareSave
void PrepareSave(RPG::Database &db)
Definition: ldb_reader.cpp:20
rpg_sound.h
rpg_terms.h
rpg_chipset.h
RPG::Database
Definition: rpg_database.h:41
rpg_system.h
rpg_item.h
rpg_battlecommand.h
LDB_Reader
Definition: ldb_reader.h:43
rpg_enemy.h
LDB_Reader::LoadXml
bool LoadXml(const std::string &filename)
Definition: ldb_reader.cpp:51