libzypp: zypp-core/parser/sysconfig.h Source File

libzypp 17.38.9

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 ) 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
Pathname.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 CodePitfalls.doc:2
zypp::ZYPP_API
const Arch Arch_empty ZYPP_API
relates: Arch This is an empty Arch represented by an empty string.
Definition Arch.h:173