00001 #ifndef DMMULTIPATH_H 00002 #define DMMULTIPATH_H 00003 00004 #include "y2storage/DmPart.h" 00005 00006 namespace storage 00007 { 00008 00009 class DmmultipathCo; 00010 class Partition; 00011 00012 class Dmmultipath : public DmPart 00013 { 00014 public: 00015 Dmmultipath( const DmmultipathCo& d, unsigned nr, Partition* p=NULL ); 00016 Dmmultipath( const DmmultipathCo& d, const Dmmultipath& rd ); 00017 00018 virtual ~Dmmultipath(); 00019 void getInfo( storage::DmmultipathInfo& info ) const; 00020 friend std::ostream& operator<< (std::ostream& s, const Dmmultipath &p ); 00021 virtual void print( std::ostream& s ) const { s << *this; } 00022 string removeText( bool doing ) const; 00023 string createText( bool doing ) const; 00024 string formatText( bool doing ) const; 00025 string resizeText( bool doing ) const; 00026 string setTypeText( bool doing=true ) const; 00027 bool equalContent( const Dmmultipath& rhs ) const; 00028 void logDifference( const Dmmultipath& d ) const; 00029 static bool notDeleted( const Dmmultipath& l ) { return( !l.deleted() ); } 00030 00031 protected: 00032 virtual const string shortPrintedName() const { return( "Dmmultipath" ); } 00033 Dmmultipath& operator=( const Dmmultipath& ); 00034 }; 00035 00036 } 00037 00038 #endif
1.5.6