Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-30 02:33:07

0001 #ifndef FWCore_Utilities_CPUServiceBase_h
0002 #define FWCore_Utilities_CPUServiceBase_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     FWCore/Utilities
0006 // Class  :     CPUServiceBase
0007 //
0008 /**\class CPUServiceBase CPUServiceBase.h "CPUServiceBase.h"
0009 
0010  Description: Base class for CPU Services
0011 
0012  Usage:
0013     Provides an interface to allow us to query the existing
0014     CPU service.
0015 
0016 */
0017 //
0018 // Original Author:  Brian Bockelman
0019 //         Created:  Wed Sep  7 12:05:13 CDT 2016
0020 //
0021 
0022 // system include files
0023 #include <string>
0024 
0025 // forward declarations
0026 namespace edm {
0027   class CPUServiceBase {
0028   public:
0029     CPUServiceBase();
0030     CPUServiceBase(const CPUServiceBase &) = delete;                   // stop default
0031     const CPUServiceBase &operator=(const CPUServiceBase &) = delete;  // stop default
0032 
0033     virtual ~CPUServiceBase();
0034 
0035     // ---------- member functions ---------------------------
0036     ///CPU information - the models present and average speed.
0037     virtual bool cpuInfo(std::string &models, double &avgSpeed) = 0;
0038   };
0039 }  // namespace edm
0040 
0041 #endif