Page principale | Hiérarchie des classes | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe

C:/Projects/ngn/include/system.h

00001 /***************************************************************************
00002  *            system.h
00003  *
00004  *  Sun Sep 12 15:47:31 2004
00005  *  Copyright  2004  thierry schartz
00006  *  thierry.schartz@bluebottle.com
00007  ****************************************************************************/
00008 
00009 /*
00010  *  This program is free software; you can redistribute it and/or modify
00011  *  it under the terms of the GNU General Public License as published by
00012  *  the Free Software Foundation; either version 2 of the License, or
00013  *  (at your option) any later version.
00014  *
00015  *  This program is distributed in the hope that it will be useful,
00016  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  *  GNU Library General Public License for more details.
00019  *
00020  *  You should have received a copy of the GNU General Public License
00021  *  along with this program; if not, write to the Free Software
00022  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00023  */
00024  
00025 #ifndef _SYSTEM_H
00026 #define _SYSTEM_H
00027 
00028 #ifdef WIN32
00029 #include <windows.h>
00030 #endif
00031 
00032 #include <string>
00033 #include "build.h"
00034 
00035 namespace ngn
00036 {
00037         
00041         class NGN_API SystemInfo
00042         {
00043         
00044                 public:
00045                                                         
00046                         SystemInfo();
00047                         virtual ~SystemInfo();
00049                         void scan();
00050                         
00052                         std::string getCPU() const;
00054                         std::string getGPU() const;
00056                         int getRAM() const;
00058                         std::string getOS() const;
00059                         
00060                         
00061                 private:
00062                         void write( std::string file );
00063                         
00064                         std::string m_CPU;
00065                         std::string m_GPU;
00066                         int m_RAM;
00067                         std::string m_OS;
00068                         bool m_is_scanned;
00069         };
00070         
00071 }//ngn
00072 #endif /* _SYSTEM_H */

Généré le Fri Nov 19 14:20:29 2004 pour NGN par  doxygen 1.3.9.1