libwfut  0.2.3
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 
12 namespace WFUT {
13 
14 static const std::string TAG_name = "name";
15 static const std::string TAG_description = "description";
16 static const std::string TAG_url = "url";
17 static const std::string TAG_email = "email";
18 static const std::string TAG_logo = "logo";
19 static const std::string TAG_channel = "channel";
20 static const std::string TAG_channellist = "channelList";
21 static const std::string TAG_mirror = "mirror";
22 static const std::string TAG_mirrorlist = "mirrorList";
23 
31 int parseChannelList(const std::string &filename, ChannelList &channels);
32 
33 
41 int parseChannelListXML(const std::string &xml, ChannelList &channels);
42 
43 
50 int writeChannelList(const std::string &filename, const ChannelList &channels);
51 
59 int parseMirrorList(const std::string &filename, MirrorList &mirrors);
60 
61 
69 int parseMirrorListXML(const std::string &xml, MirrorList &mirrors);
70 
71 
72 
73 } /* namespace WFUT */
74 
75 #endif /* LIBWFUT_CANNELIO_H */
Definition: ChannelFileList.h:12