RepoStatus.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00012 #ifndef ZYPP2_REPOSTATUS_H
00013 #define ZYPP2_REPOSTATUS_H
00014 
00015 #include <iosfwd>
00016 #include "zypp/base/PtrTypes.h"
00017 #include "zypp/CheckSum.h"
00018 #include "zypp/Date.h"
00019 
00021 namespace zypp
00022 { 
00023 
00025   //
00026   //    CLASS NAME : RepoStatus
00027   //
00037   class RepoStatus
00038   {
00039     friend std::ostream & operator<<( std::ostream & str, const RepoStatus & obj );
00040 
00041   public:
00042     
00049     std::string checksum() const;
00050     
00056     Date timestamp() const;
00057     
00064     bool empty() const;
00065 
00070     RepoStatus & setChecksum( const std::string &checksum );
00071     
00076     RepoStatus & setTimestamp( const Date &timestamp );
00077 
00079     class Impl;
00080 
00081   public:
00083     RepoStatus();
00084     
00094     RepoStatus( const Pathname &file );
00095     
00097     ~RepoStatus();
00098 
00099   public:
00100 
00101   private:
00103     RWCOW_pointer<Impl> _pimpl;
00104   };
00106 
00108   std::ostream & operator<<( std::ostream & str, const RepoStatus & obj );
00109 
00114   RepoStatus operator&&( const RepoStatus &lhs, const RepoStatus &rhs );
00115 
00117 } // namespace zypp
00119 #endif // ZYPP2_REPOSTATUS_H

Generated on Tue Sep 25 19:23:06 2007 for libzypp by  doxygen 1.5.3