Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

DiskSpace.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                                                                      |
00003 |                      __   __    ____ _____ ____                      |
00004 |                      \ \ / /_ _/ ___|_   _|___ \                     |
00005 |                       \ V / _` \___ \ | |   __) |                    |
00006 |                        | | (_| |___) || |  / __/                     |
00007 |                        |_|\__,_|____/ |_| |_____|                    |
00008 |                                                                      |
00009 |                               core system                            |
00010 |                                                     (C) 2002 SuSE AG |
00011 \----------------------------------------------------------------------/
00012 
00013    File:       DiskSpace.h
00014    Purpose:    Interface to 'df'
00015    Author:     Ludwig Nussel <lnussel@suse.de>
00016    Maintainer: Ludwig Nussel <lnussel@suse.de>
00017 
00018 /-*/
00019 
00020 #include <string>
00021 #include <vector>
00022 #include <y2util/FSize.h>
00023 
00027 class DiskSpace
00028 {
00029     public:
00030         typedef struct
00031         {
00032             std::string   device;
00033             std::string   fstype;
00034             FSize         total;
00035             FSize         used;
00036             FSize         available;
00037             short         percent;
00038             std::string   mountpoint;
00039         } DfInfo;
00040 
00041         typedef std::vector<DfInfo> DfVec;
00042 
00049         static DfVec df(bool filter_nonlocal = false, bool filter_pseudo = false);
00050 };
00051 

Generated on Thu Feb 23 23:56:10 2006 for liby2util by doxygen 1.3.6