libzypp 17.31.23
sysconfig.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
12#ifndef ZYPP_CORE_PARSER_SYSCONFIG_H
13#define ZYPP_CORE_PARSER_SYSCONFIG_H
14
15#include <string>
16#include <map>
17#include <zypp-core/Pathname.h>
18
19namespace zypp {
20 namespace base {
21 namespace sysconfig {
22
24 std::map<std::string,std::string> read( const Pathname & _path );
25
55 bool write( const Pathname & path_r, const std::string & key_r, const std::string & val_r,
56 const std::string & newcomment_r = std::string() );
57
65 bool writeStringVal( const Pathname & path_r, const std::string & key_r, const std::string & val_r,
66 const std::string & newcomment_r = std::string() );
67
68 } // namespace sysconfig
69 } // namespace base
70} // namespace zypp
71
72#endif // ZYPP_CORE_PARSER_SYSCONFIG_H
std::map< std::string, std::string > read(const Pathname &_path)
Read sysconfig file path_r and return (key,valye) pairs.
Definition: sysconfig.cc:34
bool write(const Pathname &path_r, const std::string &key_r, const std::string &val_r, const std::string &newcomment_r)
Add or change a value in sysconfig file path_r.
Definition: sysconfig.cc:80
bool writeStringVal(const Pathname &path_r, const std::string &key_r, const std::string &val_r, const std::string &newcomment_r)
Convenience to add or change a string-value in sysconfig file path_r.
Definition: sysconfig.cc:148
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:2