00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef DMMULTIPATH_H
00024 #define DMMULTIPATH_H
00025
00026 #include "storage/DmPart.h"
00027
00028 namespace storage
00029 {
00030
00031 class DmmultipathCo;
00032 class Partition;
00033
00034 class Dmmultipath : public DmPart
00035 {
00036 public:
00037
00038 Dmmultipath(const DmmultipathCo& c, const string& name, const string& device, unsigned nr,
00039 Partition* p);
00040 Dmmultipath(const DmmultipathCo& c, const string& name, const string& device, unsigned nr,
00041 Partition* p, SystemInfo& si);
00042 Dmmultipath(const DmmultipathCo& c, const Dmmultipath& v);
00043 virtual ~Dmmultipath();
00044
00045 void getInfo( storage::DmmultipathInfo& info ) const;
00046 friend std::ostream& operator<< (std::ostream& s, const Dmmultipath &p );
00047 virtual void print( std::ostream& s ) const { s << *this; }
00048 Text removeText( bool doing ) const;
00049 Text createText( bool doing ) const;
00050 Text formatText( bool doing ) const;
00051 Text resizeText( bool doing ) const;
00052 Text setTypeText(bool doing) const;
00053 bool equalContent( const Dmmultipath& rhs ) const;
00054
00055 void logDifference(std::ostream& log, const Dmmultipath& rhs) const;
00056
00057 static bool notDeleted( const Dmmultipath& l ) { return( !l.deleted() ); }
00058
00059 protected:
00060 virtual const string shortPrintedName() const { return( "Dmmultipath" ); }
00061
00062 private:
00063
00064 Dmmultipath(const Dmmultipath&);
00065 Dmmultipath& operator=(const Dmmultipath&);
00066
00067 };
00068
00069 }
00070
00071 #endif