libzypp  17.25.1
Sysconfig.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
12 #ifndef ZYPP_BASE_SYSCONFIG_H
13 #define ZYPP_BASE_SYSCONFIG_H
14 
15 #include <string>
16 #include <map>
17 #include <zypp/Pathname.h>
18 
19 namespace 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_BASE_SYSCONFIG_H
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::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
Pathname.h
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
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:1