wfut 0.2.4
A client side C++ implementation of WFUT (WorldForge Update Tool).
ChannelIO.h
1// This file may be redistributed and modified only under the terms of
2// the GNU Lesser General Public License (See COPYING for details).
3// Copyright (C) 2005 - 2007 Simon Goodall
4
5#ifndef LIBWFUT_CHANNELIO_H
6#define LIBWFUT_CHANNELIO_H 1
7
8#include <string>
9
10#include <libwfut/types.h>
11
12namespace WFUT {
13
14static const std::string TAG_name = "name";
15static const std::string TAG_description = "description";
16static const std::string TAG_url = "url";
17static const std::string TAG_email = "email";
18static const std::string TAG_logo = "logo";
19static const std::string TAG_channel = "channel";
20static const std::string TAG_channellist = "channelList";
21static const std::string TAG_mirror = "mirror";
22static const std::string TAG_mirrorlist = "mirrorList";
23
31int parseChannelList(const std::string &filename, ChannelList &channels);
32
33
41int parseChannelListXML(const std::string &xml, ChannelList &channels);
42
43
50int writeChannelList(const std::string &filename, const ChannelList &channels);
51
59int parseMirrorList(const std::string &filename, MirrorList &mirrors);
60
61
69int parseMirrorListXML(const std::string &xml, MirrorList &mirrors);
70
71
72
73} /* namespace WFUT */
74
75#endif /* LIBWFUT_CANNELIO_H */