Kitlist
A list manager for maintaining kit lists
Loading...
Searching...
No Matches
xml_writer.hpp
Go to the documentation of this file.
1
/*
2
3
This file is part of Kitlist, a program to maintain a simple list
4
of items and assign items to one or more categories.
5
6
Copyright (C) 2008-2025 Frank Dean
7
8
Kitlist is free software: you can redistribute it and/or modify
9
it under the terms of the GNU General Public License as published by
10
the Free Software Foundation, either version 3 of the License, or
11
(at your option) any later version.
12
13
Kitlist is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
GNU General Public License for more details.
17
18
You should have received a copy of the GNU General Public License
19
along with Kitlist. If not, see <http://www.gnu.org/licenses/>.
20
21
*/
22
#ifndef XML_WRITER_HPP
23
#define XML_WRITER_HPP
24
25
#include <string>
26
27
class
Model
;
28
37
class
XmlWriter
{
38
public
:
39
48
static
bool
save_file
(
const
std::string& filename,
const
Model
& model);
49
};
50
51
#endif
// XML_WRITER_HPP
Model
Maintains the data model.
Definition
model.hpp:40
XmlWriter
Saves the Model in XML format to a file.
Definition
xml_writer.hpp:37
XmlWriter::save_file
static bool save_file(const std::string &filename, const Model &model)
Saves the Model in XML format to the specified file.
Definition
xml_writer.cpp:29
src
xml_writer.hpp
Generated by
1.14.0
Copyright 2008-2025
Frank Dean