22 #undef ZYPP_BASE_LOGGER_LOGGROUP
23 #define ZYPP_BASE_LOGGER_LOGGROUP "parser"
41 const Pathname & crfile,
53 try { storedUrl =
Url(*its); }
56 ERR <<
"invalid URL '" << *its <<
"' in credentials in file: "
67 credentials->setUrl(storedUrl);
73 if (it->first ==
"username")
74 credentials->setUsername(it->second);
75 else if (it->first ==
"password")
76 credentials->setPassword(it->second);
78 ERR <<
"Unknown attribute in [" << crfile <<
"]: "
79 << it->second <<
" ignored" << endl;
82 if (credentials->valid())
83 callback(credentials);
85 ERR <<
"invalid credentials in file: " << crfile << endl;
MapKVIteratorTraits< SectionSet >::Key_const_iterator section_const_iterator
Base class for all URL exceptions.
bool isValid() const
Verifies the Url.
section_const_iterator sectionsBegin() const
entry_const_iterator entriesEnd(const std::string §ion) const
Parses a INI file and offers its structure as a dictionary.
entry_const_iterator entriesBegin(const std::string §ion) const
EntrySet::const_iterator entry_const_iterator
section_const_iterator sectionsEnd() const