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
SaveOpt
Definition: lcf_saveopt.h:16
bool Load(const std::string &filename, const std::string &encoding)
Definition: ldb_reader.cpp:24
bool SaveXml(const std::string &filename)
Definition: ldb_reader.cpp:42
void PrepareSave(RPG::Database &db)
Definition: ldb_reader.cpp:20
bool LoadXml(const std::string &filename)
Definition: ldb_reader.cpp:51
bool Save(const std::string &filename, const std::string &encoding, SaveOpt opt=SaveOpt::eNone)
Definition: ldb_reader.cpp:33