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 MEMORY_INCLUDED 00035 #define MEMORY_INCLUDED 00036 00037 #include "XMLFileOutput.h" 00038 00039 namespace hwdet 00040 { 00043 class Memory : public XMLElement 00044 { 00045 public: 00047 Memory(); 00048 00050 Memory(unsigned long long physical_mem_size, unsigned long long virtual_mem_size, 00051 unsigned long long swap_size, unsigned long long page_file_size); 00052 00054 unsigned long long GetPhysicalMemorySize(void) const; 00055 00057 void SetPhysicalMemorySize(unsigned long long value); 00058 00060 unsigned long long GetSwapSize(void) const; 00061 00063 void SetSwapSize(unsigned long long value); 00064 00066 unsigned long long GetVirtualMemorySize(void) const; 00067 00069 void SetVirtualMemorySize(unsigned long long value); 00070 00072 unsigned long long GetPageFileSize(void) const; 00073 00075 void SetPageFileSize(unsigned long long value); 00076 00077 private: 00078 00080 XMLValueElement< unsigned long long > *physical_memory; 00081 00083 XMLValueElement< unsigned long long > *virtual_memory; 00084 00086 XMLValueElement< unsigned long long > *swap; 00087 00089 XMLValueElement< unsigned long long > *pagefile; 00090 }; 00091 } 00092 00093 #endif