Debian Codegraph @

src/tools/davix_config_parser.hpp

raw
1 /*
2 * This File is part of Davix, The IO library for HTTP based protocols
3 * Copyright (C) CERN
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 *
19 */
20
21 #ifndef DAVIX_CONFIG_PARSER_HPP
22 #define DAVIX_CONFIG_PARSER_HPP
23
24 #include <vector>
25 #include <string>
26 #include "davix_tool_params.hpp"
27
28 namespace Davix {
29
30 std::vector<std::string> davix_config_tokenize(const std::string &contents, std::string &err);
31 bool davix_config_apply(const std::string &filename, Tool::OptParams &params, const std::string &url);
32 bool davix_config_apply(const std::string &filename, const std::string &contents, const Uri &uri, Tool::OptParams &params);
33
34 }
35
36 #endif