#include <SourceInfo.h>
Public Member Functions | |
| SourceInfo () | |
| SourceInfo (const Url &url, const Pathname &path, const std::string &alias="", const Pathname &cache_dir="", boost::tribool autorefresh=boost::indeterminate) | |
| SourceInfo & | setEnabled (boost::tribool enabled) |
| SourceInfo & | setAutorefresh (boost::tribool autorefresh) |
| SourceInfo & | setBaseSource (bool val_r) |
| SourceInfo & | setUrl (const Url &url) |
| SourceInfo & | setPath (const Pathname &p) |
| SourceInfo & | setAlias (const std::string &alias) |
| SourceInfo & | setType (const std::string &t) |
| SourceInfo & | setCacheDir (const Pathname &p) |
| SourceInfo & | setDescription (const std::string &description) |
| SourceInfo & | setChecksum (const CheckSum &checksum) |
| SourceInfo & | setTimestamp (const Date ×tamp) |
| boost::tribool | enabled () const |
| boost::tribool | autorefresh () const |
| boost::tribool | baseSource () const |
| Pathname | cacheDir () const |
| Pathname | path () const |
| std::string | alias () const |
| std::string | type () const |
| std::string | description () const |
| CheckSum | checksum () const |
| Date | timestamp () const |
| Url | url () const |
| std::ostream & | dumpOn (std::ostream &str) const |
| Overload to realize stream output. | |
Private Attributes | |
| boost::tribool | _enabled |
| boost::tribool | _autorefresh |
| boost::tribool | _base_source |
| std::string | _type |
| Url | _url |
| Pathname | _cache_dir |
| Pathname | _path |
| std::string | _alias |
| std::string | _description |
| CheckSum | _checksum |
| Date | _timestamp |
Related Functions | |
| (Note that these are not member functions.) | |
| std::ostream & | operator<< (std::ostream &str, const SourceInfo &obj) |
| Stream output. | |
Definition at line 29 of file SourceInfo.h.
| zypp::source::SourceInfo::SourceInfo | ( | ) |
Definition at line 25 of file SourceInfo.cc.
| zypp::source::SourceInfo::SourceInfo | ( | const Url & | url, | |
| const Pathname & | path, | |||
| const std::string & | alias = "", |
|||
| const Pathname & | cache_dir = "", |
|||
| boost::tribool | autorefresh = boost::indeterminate | |||
| ) |
| SourceInfo & zypp::source::SourceInfo::setEnabled | ( | boost::tribool | enabled | ) |
Definition at line 45 of file SourceInfo.cc.
References _enabled.
Referenced by zypp::SourceManager::store().
| SourceInfo & zypp::source::SourceInfo::setAutorefresh | ( | boost::tribool | autorefresh | ) |
Definition at line 51 of file SourceInfo.cc.
References _autorefresh.
Referenced by zypp::SourceManager::store().
| SourceInfo & zypp::source::SourceInfo::setBaseSource | ( | bool | val_r | ) |
Definition at line 57 of file SourceInfo.cc.
References _base_source.
Referenced by zypp::SourceFactory::createFrom().
| SourceInfo & zypp::source::SourceInfo::setUrl | ( | const Url & | url | ) |
| SourceInfo & zypp::source::SourceInfo::setPath | ( | const Pathname & | p | ) |
Definition at line 69 of file SourceInfo.cc.
References _path.
Referenced by zypp::SourceManager::store().
| SourceInfo & zypp::source::SourceInfo::setAlias | ( | const std::string & | alias | ) |
Definition at line 75 of file SourceInfo.cc.
References _alias.
Referenced by zypp::SourceManager::store().
| SourceInfo & zypp::source::SourceInfo::setType | ( | const std::string & | t | ) |
Definition at line 81 of file SourceInfo.cc.
References _type.
Referenced by zypp::SourceFactory::createFrom(), and zypp::SourceManager::store().
| SourceInfo & zypp::source::SourceInfo::setCacheDir | ( | const Pathname & | p | ) |
Definition at line 87 of file SourceInfo.cc.
References _cache_dir.
Referenced by zypp::SourceManager::store().
| SourceInfo & zypp::source::SourceInfo::setDescription | ( | const std::string & | description | ) |
| SourceInfo & zypp::source::SourceInfo::setChecksum | ( | const CheckSum & | checksum | ) |
| SourceInfo & zypp::source::SourceInfo::setTimestamp | ( | const Date & | timestamp | ) |
| tribool zypp::source::SourceInfo::enabled | ( | ) | const |
Definition at line 111 of file SourceInfo.cc.
References _enabled.
Referenced by dumpOn(), and zypp::storage::toXML().
| tribool zypp::source::SourceInfo::autorefresh | ( | ) | const |
Definition at line 114 of file SourceInfo.cc.
References _autorefresh.
Referenced by zypp::SourceFactory::createFrom(), zypp::SourceFactory::Impl::createSourceImpl(), dumpOn(), and zypp::storage::toXML().
| boost::tribool zypp::source::SourceInfo::baseSource | ( | ) | const |
Definition at line 117 of file SourceInfo.cc.
References _base_source.
Referenced by zypp::SourceFactory::createFrom(), zypp::SourceFactory::Impl::createSourceImpl(), and dumpOn().
| Pathname zypp::source::SourceInfo::cacheDir | ( | ) | const |
Definition at line 120 of file SourceInfo.cc.
References _cache_dir.
Referenced by zypp::SourceFactory::createFrom(), zypp::SourceFactory::Impl::createSourceImpl(), dumpOn(), zypp::SourceManager::store(), and zypp::storage::toXML().
| Pathname zypp::source::SourceInfo::path | ( | ) | const |
Definition at line 123 of file SourceInfo.cc.
References _path.
Referenced by zypp::SourceFactory::createFrom(), zypp::SourceFactory::Impl::createSourceImpl(), dumpOn(), and zypp::storage::toXML().
| std::string zypp::source::SourceInfo::alias | ( | ) | const |
Definition at line 126 of file SourceInfo.cc.
References _alias.
Referenced by zypp::SourceFactory::createFrom(), zypp::SourceFactory::Impl::createSourceImpl(), dumpOn(), zypp::storage::XMLFilesBackend::storeSource(), and zypp::storage::toXML().
| std::string zypp::source::SourceInfo::type | ( | ) | const |
Definition at line 138 of file SourceInfo.cc.
References _type.
Referenced by zypp::SourceFactory::createFrom(), dumpOn(), and zypp::storage::toXML().
| std::string zypp::source::SourceInfo::description | ( | ) | const |
| CheckSum zypp::source::SourceInfo::checksum | ( | ) | const |
| Date zypp::source::SourceInfo::timestamp | ( | ) | const |
| Url zypp::source::SourceInfo::url | ( | ) | const |
Definition at line 141 of file SourceInfo.cc.
References _url.
Referenced by zypp::SourceFactory::createFrom(), zypp::SourceFactory::createSourceImplWorkflow(), dumpOn(), setUrl(), and zypp::storage::toXML().
| std::ostream & zypp::source::SourceInfo::dumpOn | ( | std::ostream & | str | ) | const |
Overload to realize stream output.
Definition at line 144 of file SourceInfo.cc.
References alias(), autorefresh(), baseSource(), cacheDir(), enabled(), path(), type(), and url().
Referenced by operator<<().
| std::ostream & operator<< | ( | std::ostream & | str, | |
| const SourceInfo & | obj | |||
| ) | [related] |
boost::tribool zypp::source::SourceInfo::_enabled [private] |
boost::tribool zypp::source::SourceInfo::_autorefresh [private] |
boost::tribool zypp::source::SourceInfo::_base_source [private] |
std::string zypp::source::SourceInfo::_type [private] |
Url zypp::source::SourceInfo::_url [private] |
Pathname zypp::source::SourceInfo::_cache_dir [private] |
Pathname zypp::source::SourceInfo::_path [private] |
std::string zypp::source::SourceInfo::_alias [private] |
std::string zypp::source::SourceInfo::_description [private] |
CheckSum zypp::source::SourceInfo::_checksum [private] |
Date zypp::source::SourceInfo::_timestamp [private] |
1.5.0