PCMGPU.h

Go to the documentation of this file.
00001 
00002 //
00003 // This source file is a part of ParCompMark
00004 // Parallel Compositing Benchmark Framework
00005 //
00006 // for latest info see http://parcompmark.sourceforge.net
00007 
00008 //
00009 // Copyright (C) 2006 IT2 ParCompMark Dev. Team
00010 // 
00011 // This program is free software; you can redistribute it and/or
00012 // modify it under the terms of the GNU General Public License
00013 // as published by the Free Software Foundation; either version 2
00014 // of the License, or (at your option) any later version.
00015 // 
00016 // This program 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
00019 // GNU General Public License for more details.
00020 // 
00021 // You should have received a copy of the GNU General Public License
00022 // along with this program; if not, write to the Free Software
00023 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00024 
00027 
00028 #ifndef __PCM_GPU_H__
00029 #  define __PCM_GPU_H__
00030 
00031 //
00032 // Inner includes
00033 //
00034 
00035 #  include "PCMPremeditations.h"
00036 
00037 #  include "PCMOutputNode.h"
00038 
00039 #  include "PCMPointer.h"
00040 
00041 #  include "PCMOutputNode.h"
00042 
00043 #  include "PCMFileSystemManager.h"
00044 
00045 #  include "PCMXDisplay.h"
00046 
00047 //
00048 // Outer includes
00049 //
00050 
00051 #  include <string>
00052 
00053 #  include <tinyxml/tinyxml.h>
00054 
00055 namespace ParCompMark
00056 {
00057 
00062   class GPU:public OutputNode
00063   {
00064 
00065         //
00066         // Unit test class
00067         //
00068 #  ifdef PARCOMPMARK_TEST
00069         friend class ParCompMarkTest::TestGPU;
00070 #  endif
00071 
00072         //
00073         // Typedefs
00074         //
00075 
00076    public:
00077 
00079         typedef ParCompMark::Pointer < GPU,
00080         Mutex > Pointer;
00081 
00082         //
00083         // Variables
00084         //
00085 
00087 
00088 
00089    protected:
00090 
00096         std::string mVendor;
00097 
00103         std::string mModel;
00104 
00110         u32 mMemorySize;
00111 
00118         Real mLoadPerSecond;
00119 
00121 
00122         //
00123         // Constructors & destructor
00124         //
00125 
00127 
00128 
00129    public:
00130 
00136         GPU(const std::string & name, const OutputNode::NodeType & type);
00137 
00141         virtual ~ GPU();
00142 
00144 
00145         //
00146         // Getters & setters
00147         //
00148 
00150 
00151 
00152    public:
00153 
00159         const std::string & getVendor() const;
00160 
00166         const std::string & getModel() const;
00167 
00173         const u32 & getMemorySize() const;
00174 
00180         const Real & getLoadPerSecond() const;
00181 
00183 
00184         //
00185         // Class methods
00186         //
00187 
00189 
00190 
00191    public:
00192 
00198         static GPU::Pointer parseXML(TiXmlElement * &tiGPU);
00199 
00201 
00202         //
00203         // Methods
00204         //
00205 
00207 
00208 
00209    public:
00210 
00214         virtual void refreshData();
00215 
00217 
00218   };
00219 
00220   //
00221   // Include header implementation
00222   //
00223 
00224 #  include "PCMGPU_impl.h"
00225 
00226 }
00227 
00228 #endif