wfut 0.2.4
A client side C++ implementation of WFUT (WorldForge Update Tool).
FileIO.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_FILEIO_H
6#define LIBWFUT_FILEIO_H 1
7
8#include <string>
9
10#include <libwfut/types.h>
11
12namespace WFUT {
13
14class ChannelFileList;
15
16static const std::string TAG_filename = "filename";
17static const std::string TAG_version = "version";
18static const std::string TAG_crc32 = "crc32";
19static const std::string TAG_size = "size";
20static const std::string TAG_execute = "execute";
21static const std::string TAG_file = "file";
22static const std::string TAG_filelist = "fileList";
23static const std::string TAG_dir = "dir";
24static const std::string TAG_deleted = "deleted";
25
26int parseFileList(const std::string &filename, ChannelFileList &files);
27int parseFileListXML(const std::string &xml, ChannelFileList &files);
28
29int writeFileList(const std::string &filename, const ChannelFileList &files);
30} /* namespace WFUT */
31
32#endif /* LIBWFUT_FILEIO_H */