zypp::source::SourceInfo Class Reference

#include <SourceInfo.h>

List of all members.

Public Member Functions

 SourceInfo ()
 SourceInfo (const Url &url, const Pathname &path, const std::string &alias="", const Pathname &cache_dir="", boost::tribool autorefresh=boost::indeterminate)
SourceInfosetEnabled (boost::tribool enabled)
SourceInfosetAutorefresh (boost::tribool autorefresh)
SourceInfosetBaseSource (bool val_r)
SourceInfosetUrl (const Url &url)
SourceInfosetPath (const Pathname &p)
SourceInfosetAlias (const std::string &alias)
SourceInfosetType (const std::string &t)
SourceInfosetCacheDir (const Pathname &p)
SourceInfosetDescription (const std::string &description)
SourceInfosetChecksum (const CheckSum &checksum)
SourceInfosetTimestamp (const Date &timestamp)
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.


Detailed Description

Definition at line 29 of file SourceInfo.h.


Constructor & Destructor Documentation

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 
)


Member Function Documentation

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  ) 

Definition at line 63 of file SourceInfo.cc.

References _url, and 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  ) 

Definition at line 93 of file SourceInfo.cc.

References _description.

SourceInfo & zypp::source::SourceInfo::setChecksum ( const CheckSum checksum  ) 

Definition at line 99 of file SourceInfo.cc.

References _checksum, and checksum().

SourceInfo & zypp::source::SourceInfo::setTimestamp ( const Date timestamp  ) 

Definition at line 105 of file SourceInfo.cc.

References _timestamp, and 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

Definition at line 129 of file SourceInfo.cc.

References _description.

CheckSum zypp::source::SourceInfo::checksum (  )  const

Definition at line 132 of file SourceInfo.cc.

References _checksum.

Referenced by setChecksum().

Date zypp::source::SourceInfo::timestamp (  )  const

Definition at line 135 of file SourceInfo.cc.

References _timestamp.

Referenced by setTimestamp().

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<<().


Friends And Related Function Documentation

std::ostream & operator<< ( std::ostream &  str,
const SourceInfo obj 
) [related]

Stream output.

Definition at line 80 of file SourceInfo.h.

References dumpOn().


Member Data Documentation

boost::tribool zypp::source::SourceInfo::_enabled [private]

Definition at line 66 of file SourceInfo.h.

Referenced by enabled(), and setEnabled().

boost::tribool zypp::source::SourceInfo::_autorefresh [private]

Definition at line 67 of file SourceInfo.h.

Referenced by autorefresh(), and setAutorefresh().

boost::tribool zypp::source::SourceInfo::_base_source [private]

Definition at line 68 of file SourceInfo.h.

Referenced by baseSource(), and setBaseSource().

std::string zypp::source::SourceInfo::_type [private]

Definition at line 69 of file SourceInfo.h.

Referenced by setType(), and type().

Url zypp::source::SourceInfo::_url [private]

Definition at line 70 of file SourceInfo.h.

Referenced by setUrl(), and url().

Pathname zypp::source::SourceInfo::_cache_dir [private]

Definition at line 71 of file SourceInfo.h.

Referenced by cacheDir(), and setCacheDir().

Pathname zypp::source::SourceInfo::_path [private]

Definition at line 72 of file SourceInfo.h.

Referenced by path(), and setPath().

std::string zypp::source::SourceInfo::_alias [private]

Definition at line 73 of file SourceInfo.h.

Referenced by alias(), and setAlias().

std::string zypp::source::SourceInfo::_description [private]

Definition at line 74 of file SourceInfo.h.

Referenced by description(), and setDescription().

CheckSum zypp::source::SourceInfo::_checksum [private]

Definition at line 75 of file SourceInfo.h.

Referenced by checksum(), and setChecksum().

Date zypp::source::SourceInfo::_timestamp [private]

Definition at line 76 of file SourceInfo.h.

Referenced by setTimestamp(), and timestamp().


The documentation for this class was generated from the following files:
Generated on Tue Nov 28 16:49:40 2006 for zypp by  doxygen 1.5.0