DiskPartition.h

Go to the documentation of this file.
00001 /*
00002  *  BEEN: Benchmarking Environment
00003  *  ==============================
00004  *
00005  *  File author: Branislav Repcek
00006  *
00007  *  GNU Lesser General Public License Version 2.1
00008  *  ---------------------------------------------
00009  *  Copyright (C) 2004-2006 Distributed Systems Research Group,
00010  *  Faculty of Mathematics and Physics, Charles University in Prague
00011  *
00012  *  This library is free software; you can redistribute it and/or
00013  *  modify it under the terms of the GNU Lesser General Public
00014  *  License version 2.1, as published by the Free Software Foundation.
00015  *
00016  *  This library is distributed in the hope that it will be useful,
00017  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00019  *  Lesser General Public License for more details.
00020  *
00021  *  You should have received a copy of the GNU Lesser General Public
00022  *  License along with this library; if not, write to the Free Software
00023  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
00024  *  MA  02111-1307  USA
00025  */
00026 
00034 #ifndef DISK_PARTITION_INCLUDED
00035 #define DISK_PARTITION_INCLUDED
00036 
00037 #include "XMLFileOutput.h"
00038 #include "UnicodeString.h"
00039 
00040 namespace hwdet
00041 {
00042 
00045     class DiskPartition : public hwdet::XMLElement
00046     {
00047     public:
00048 
00050         DiskPartition(const String &device, const String &disk_name, const String &filesystem_name, 
00051                       unsigned long long total_size, unsigned long long free_space_size);
00052 
00054         String GetDeviceName(void) const;
00055 
00057         String GetName(void) const;
00058 
00060         String GetFilesystem(void) const;
00061 
00063         unsigned long long GetFreeSpaceSize(void) const;
00064 
00066         unsigned long long GetSize(void) const;
00067 
00068     private:
00069 
00071         XMLValueElement< String >             *device_name;
00072 
00074         XMLValueElement< String >             *name;
00075 
00077         XMLValueElement< String >             *filesystem;
00078 
00080         XMLValueElement< unsigned long long > *size;
00081 
00083         XMLValueElement< unsigned long long > *free_space;
00084     };
00085 }
00086 
00087 #endif

Generated on Tue Dec 19 17:43:52 2006 for Detector for Windows by  doxygen 1.4.7