00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef PROC_PART_H
00024 #define PROC_PART_H
00025
00026 #include <string>
00027 #include <list>
00028 #include <map>
00029
00030 #include "y2storage/AsciiFile.h"
00031
00032 namespace storage
00033 {
00034
00035 class ProcPart : public AsciiFile
00036 {
00037 public:
00038 ProcPart();
00039 bool getInfo( const string& Dev, unsigned long long& SizeK,
00040 unsigned long& Major, unsigned long& Minor ) const;
00041 bool getSize( const string& Dev, unsigned long long& SizeK ) const;
00042 std::list<string> getMatchingEntries( const string& regexp ) const;
00043 protected:
00044 static string devName( const string& Dev );
00045 std::map<string,int> co;
00046 };
00047
00048 }
00049
00050 #endif