OnMediaLocation.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00012 #ifndef ZYPP_SOURCE_ONMEDIALOCATION_H
00013 #define ZYPP_SOURCE_ONMEDIALOCATION_H
00014 
00015 #include <iosfwd>
00016 
00017 #include "zypp/Pathname.h"
00018 #include "zypp/ByteCount.h"
00019 #include "zypp/CheckSum.h"
00020 
00022 namespace zypp
00023 { 
00024 
00025   namespace source
00026   { 
00027 
00029     //
00030     //  CLASS NAME : OnMediaLocation
00031     //
00033     class OnMediaLocation
00034     {
00035       friend std::ostream & operator<<( std::ostream & str, const OnMediaLocation & obj );
00036 
00037     public:
00039       OnMediaLocation()
00040       : _medianr( 1 )
00041       {}
00042 
00043     public:
00044       unsigned          medianr()      const { return _medianr; }
00045       const Pathname &  filename()     const { return _filename; }
00046       const CheckSum &  checksum()     const { return _checksum; }
00047       const ByteCount & downloadsize() const { return _downloadsize; }
00048 
00049     public:
00050       OnMediaLocation & medianr( unsigned val_r )               { _medianr = val_r; return *this; }
00051       OnMediaLocation & filename( const Pathname & val_r )      { _filename = val_r; return *this; }
00052       OnMediaLocation & checksum( const CheckSum & val_r )      { _checksum = val_r; return *this; }
00053       OnMediaLocation & downloadsize( const ByteCount & val_r ) { _downloadsize = val_r; return *this; }
00054 
00055     private:
00056       unsigned  _medianr;
00057       Pathname  _filename;
00058       CheckSum  _checksum;
00059       ByteCount _downloadsize;
00060     };
00062 
00064     std::ostream & operator<<( std::ostream & str, const OnMediaLocation & obj );
00065 
00067   } // namespace source
00070 } // namespace zypp
00072 #endif // ZYPP_SOURCE_ONMEDIALOCATION_H

Generated on Wed Sep 27 01:16:42 2006 for zypp by  doxygen 1.4.6