processor_vms.h
来自「Pegasus is an open-source implementation」· C头文件 代码 · 共 146 行
H
146 行
//%2006//////////////////////////////////////////////////////////////////////////// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;// IBM Corp.; EMC Corporation, The Open Group.// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;// EMC Corporation; VERITAS Software Corporation; The Open Group.// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;// EMC Corporation; Symantec Corporation; The Open Group.//// Permission is hereby granted, free of charge, to any person obtaining a copy// of this software and associated documentation files (the "Software"), to// deal in the Software without restriction, including without limitation the// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or// sell copies of the Software, and to permit persons to whom the Software is// furnished to do so, subject to the following conditions:// // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.////==============================================================================//// Author: Christopher Neufeld <neufeld@linuxcare.com>// David Kennedy <dkennedy@linuxcare.com>//// Modified By:// David Kennedy <dkennedy@linuxcare.com>// Christopher Neufeld <neufeld@linuxcare.com>// Al Stone, Hewlett-Packard Company <ahs3@fc.hp.com>// Jim Metcalfe, Hewlett-Packard Company// Carlos Bonilla, Hewlett-Packard Company// Mike Glantz, Hewlett-Packard Company <michael_glantz@hp.com>////%////////////////////////////////////////////////////////////////////////////#ifndef PG_PROCESSOR_STUB_H#define PG_PROCESSOR_STUB_H/* ========================================================================== Includes. ========================================================================== */#include <Pegasus/Common/Config.h>#include <Pegasus/Common/String.h>#include <Pegasus/Common/CIMDateTime.h>PEGASUS_USING_STD;PEGASUS_USING_PEGASUS;/* ========================================================================== Type Definitions. ========================================================================== */class Processor{protected:public: Processor(); ~Processor(); // CIM_ManagedElement Boolean getCaption(String&) const; Boolean getDescription(String&) const; // CIM_ManagedSystemElement Boolean getInstallDate(CIMDateTime&) const; Boolean getName(String&) const; Boolean getStatus(String&) const; // CIM_LogicalElement // CIM_LogicalDevice String getDeviceID(void) const; Boolean getPowerManagementSupported(Boolean&) const; Boolean getPowerManagementCapabilities(Array<Uint16>& ui16a) const; Boolean getAvailability(Uint16&) const; Boolean getStatusInfo(Uint16&) const; Boolean getLastErrorCode(Uint32&) const; Boolean getErrorDescription(String&) const; Boolean getErrorCleared(Boolean&) const; Boolean getOtherIdentifyingInfo(Array<String>&) const; Boolean getPowerOnHours(Uint64&) const; Boolean getTotalPowerOnHours(Uint64&) const; Boolean getIdentifyingDescriptions(Array<String>&) const; Boolean getAdditionalAvailability(Array<Uint16>&) const; Boolean getMaxQuiesceTime(Uint64&) const; // Methods#if 0 Boolean execSetPowerState(&) const; Boolean execReset(&) const; Boolean execEnableDevice(&) const; Boolean execOnlineDevice(&) const; Boolean execQuiesceDevice(&) const; Boolean execSaveProperties(&) const; Boolean execRestoreProperties(&) const;#endif // CIM_Processor Boolean getRole(String&) const; Boolean getFamily(Uint16&) const; Boolean getOtherFamilyDescription(String&) const; Boolean getUpgradeMethod(Uint16&) const; Boolean getMaxClockSpeed(Uint32&) const; Boolean getCurrentClockSpeed(Uint32&) const; Boolean getDataWidth(Uint16&) const; Boolean getAddressWidth(Uint16&) const; Boolean getLoadPercentage(Uint16&) const; Boolean getStepping(String&) const; Boolean getUniqueID(String&) const; Boolean getCPUStatus(Uint16&) const; // PG_Processor Boolean getBiosID(String&) const; Boolean getFirmwareID(String&) const; // Auxiliary routines // Loads the internal processor structure with // the status data for the indexed processor and, if // necessary (on HP-UX) updates pIndex to skip unused // entries so that a simple increment will allow next // call to access next entry Boolean loadProcessorInfo(int &pIndex); // Finds the requested process and loads its info into // the internal process status structure Boolean findProcessor(const String& deviceID); static String getSysName(void);};#endif /* #ifndef PG_PROCESSOR_STUB_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?