liblcf
Loading...
Searching...
No Matches
lmt_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_LMT_READER_H
11#define LCF_LMT_READER_H
12
13#include <string>
14#include "reader_lcf.h"
15#include "writer_lcf.h"
16#include "writer_xml.h"
17#include "rpg_treemap.h"
18#include "lcf_saveopt.h"
19
23namespace LMT_Reader {
24
28 bool Load(const std::string& filename, const std::string &encoding);
29
33 bool Save(const std::string& filename, const std::string &encoding, SaveOpt opt = SaveOpt::eNone);
34
38 bool SaveXml(const std::string& filename);
39
43 bool LoadXml(const std::string& filename);
44
48 bool Load(std::istream& filestream, const std::string &encoding);
49
53 bool Save(std::ostream& filestream, const std::string &encoding, SaveOpt opt = SaveOpt::eNone);
54
58 bool SaveXml(std::ostream& filestream);
59
63 bool LoadXml(std::istream& filestream);
64}
65
66#endif
SaveOpt
Definition: lcf_saveopt.h:16
bool LoadXml(const std::string &filename)
Definition: lmt_reader.cpp:47
bool Save(const std::string &filename, const std::string &encoding, SaveOpt opt=SaveOpt::eNone)
Definition: lmt_reader.cpp:29
bool Load(const std::string &filename, const std::string &encoding)
Definition: lmt_reader.cpp:20
bool SaveXml(const std::string &filename)
Definition: lmt_reader.cpp:38