libzypp 17.37.10

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
19 namespace zypp {
20 namespace base {
21 namespace sysconfig {
22
24 std::map<std::string,std::string> read( const Pathname & _path ) ZYPP_API;
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() ) ZYPP_API;
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() ) ZYPP_API;
67
68 } // namespace sysconfig
69 } // namespace base
70} // namespace zypp
71
72#endif // ZYPP_CORE_PARSER_SYSCONFIG_H
zypp::base::sysconfig
Definition sysconfig.cc:32
zypp::base::sysconfig::writeStringVal
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
zypp::base::sysconfig::write
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
zypp::base::sysconfig::read
std::map< std::string, std::string > read(const Pathname &_path)
Read sysconfig file path_r and return (key,valye) pairs.
Definition sysconfig.cc:34
zypp::base
Definition Random.cc:7
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition Application.cc:20
zypp::ZYPP_API
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
Definition Arch.h:247
Pathname.h