MVE - Multi-View Environment mve-devel
Loading...
Searching...
No Matches
ini_parser.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2015, Simon Fuhrmann
3 * TU Darmstadt - Graphics, Capture and Massively Parallel Computing
4 * All rights reserved.
5 *
6 * This software may be modified and distributed under the terms
7 * of the BSD 3-Clause license. See the LICENSE.txt file for details.
8 */
9
10#ifndef UTIL_INI_PARSER_HEADER
11#define UTIL_INI_PARSER_HEADER
12
13#include <istream>
14#include <string>
15#include <map>
16
17#include "util/defines.h"
18
20
22void
23parse_ini (std::istream& stream, std::map<std::string, std::string>* map);
24
29void
30write_ini (std::map<std::string, std::string> const& map, std::ostream& stream);
31
33
34#endif /* UTIL_INI_PARSER_HEADER */
35
void write_ini(std::map< std::string, std::string > const &map, std::ostream &stream)
Writes an INI file for the key/value pairs in the map.
Definition ini_parser.cc:83
void parse_ini(std::istream &stream, std::map< std::string, std::string > *map)
Parses a file in INI format and places key/value pairs in the map.
Definition ini_parser.cc:30
#define UTIL_NAMESPACE_BEGIN
Definition defines.h:13
#define UTIL_NAMESPACE_END
Definition defines.h:14