ResObject.cc

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00012 #include "zypp/ResObject.h"
00013 #include "zypp/source/SourceImpl.h"
00014 #include "zypp/detail/ResObjectImplIf.h"
00015 
00016 using namespace std;
00017 
00019 namespace zypp
00020 { 
00021 
00023   //
00024   //    METHOD NAME : ResObject::ResObject
00025   //    METHOD TYPE : Ctor
00026   //
00027   ResObject::ResObject( const Kind & kind_r,
00028                         const NVRAD & nvrad_r )
00029   : Resolvable( kind_r, nvrad_r )
00030   {}
00031 
00033   //
00034   //    METHOD NAME : ResObject::~ResObject
00035   //    METHOD TYPE : Dtor
00036   //
00037   ResObject::~ResObject()
00038   {}
00039 
00041   //
00042   //    METHOD NAME : ResObject::dumpOn
00043   //    METHOD TYPE : std::ostream &
00044   //
00045   std::ostream & ResObject::dumpOn( std::ostream & str ) const
00046   {
00047     str << "[S" << source().numericId() << ":" << sourceMediaNr() << "]";
00048     return Resolvable::dumpOn( str );
00049   }
00050 
00052   //
00053   //    ResObject interface forwarded to implementation
00054   //
00056 
00057   Text ResObject::summary() const
00058   { return pimpl().summary().text(); }
00059 
00060   Text ResObject::description() const
00061   { return pimpl().description().text(); }
00062 
00063   Text ResObject::insnotify() const
00064   { return pimpl().insnotify().text(); }
00065 
00066   Text ResObject::delnotify() const
00067   { return pimpl().delnotify().text(); }
00068 
00069   License ResObject::licenseToConfirm() const
00070   { return pimpl().licenseToConfirm().text(); }
00071 
00072   Vendor ResObject::vendor() const
00073   { return pimpl().vendor(); }
00074 
00075   ByteCount ResObject::size() const
00076   { return pimpl().size(); }
00077 
00078   ByteCount ResObject::archivesize() const
00079   { return pimpl().archivesize(); }
00080 
00081   Source_Ref ResObject::source() const
00082   { return pimpl().source(); }
00083 
00084   unsigned ResObject::sourceMediaNr() const
00085   { return pimpl().sourceMediaNr(); }
00086 
00087   bool ResObject::installOnly() const
00088   { return pimpl().installOnly(); }
00089 
00090   Date ResObject::buildtime() const
00091   { return pimpl().buildtime(); }
00092 
00093   Date ResObject::installtime() const
00094   { return pimpl().installtime(); }
00095 
00096   ZmdId ResObject::zmdid () const
00097   { return pimpl().zmdid(); }
00098 
00100 } // namespace zypp

Generated on Thu Jul 6 00:07:22 2006 for zypp by  doxygen 1.4.6