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 LINUX_ADVANCED_FEATURES_INCLUDED 00035 #define LINUX_ADVANCED_FEATURES_INCLUDED 00036 00037 #include "../common/UnicodeString.h" 00038 #include "../common/AdvancedFeatures.h" 00039 #include "../common/XMLFileOutput.h" 00040 00041 namespace hwdet 00042 { 00043 00046 class LinuxAdvancedFeatures : public AdvancedFeatures 00047 { 00048 public: 00050 LinuxAdvancedFeatures(void); 00051 00053 LinuxAdvancedFeatures(const String &Distribution, const String &DistroVersion, 00054 const String &Release, const String &Version, const String &Kernel); 00055 00057 String GetDistributionName(void) const; 00058 00060 String GetRelease(void) const; 00061 00063 String GetVersion(void) const; 00064 00066 String GetKernelVersion(void) const; 00067 00069 String GetDistributionVersion(void) const; 00070 00071 private: 00073 XMLValueElement< String > *distribution; 00074 00076 XMLValueElement< String > *release; 00077 00079 XMLValueElement< String > *version; 00080 00082 XMLValueElement< String > *distro_version; 00083 00085 XMLValueElement< String > *kernel_version; 00086 }; 00087 } 00088 00089 #endif