ip_vms.cpp
来自「Pegasus is an open-source implementation」· C++ 代码 · 共 677 行 · 第 1/2 页
CPP
677 行
//%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: Sean Keenan <sean.keenan@hp.com>//// Modified By:////%/////////////////////////////////////////////////////////////////////////////* ========================================================================== Includes. ========================================================================== */#include "IPPlatform.h"PEGASUS_USING_STD;PEGASUS_USING_PEGASUS;IPInterface::IPInterface(){}IPInterface::~IPInterface(){}/*================================================================================NAME : getCaptionDESCRIPTION :ASSUMPTIONS : PRE-CONDITIONS :POST-CONDITIONS : NOTES : ================================================================================*/Boolean IPInterface::getCaption(String& s) const{ s = String::EMPTY; return true;}/*================================================================================NAME : getDescriptionDESCRIPTION :ASSUMPTIONS : PRE-CONDITIONS :POST-CONDITIONS : NOTES : ================================================================================*/Boolean IPInterface::getDescription(String& s) const{ s = String::EMPTY; return true;}/*================================================================================NAME : getInstallDateDESCRIPTION : ASSUMPTIONS : PRE-CONDITIONS :POST-CONDITIONS : NOTES : ================================================================================*/Boolean IPInterface::getInstallDate(CIMDateTime& d) const{ // Not supported. This property is inherited from // CIM_ManagedSystemElement, but has no useful meaning // for an IP address. return false;}/*================================================================================NAME : getNameDESCRIPTION : ASSUMPTIONS : PRE-CONDITIONS :POST-CONDITIONS : NOTES : ================================================================================*/Boolean IPInterface::getName(String& s) const{ // not supported return false;}/*================================================================================NAME : getStatusDESCRIPTION : ASSUMPTIONS : PRE-CONDITIONS :POST-CONDITIONS : NOTES : ================================================================================*/Boolean IPInterface::getStatus(String& s) const{ // This property is inherited from CIM_ManagedSystemElement, // is not relevant. return false;}/*================================================================================NAME : getSystemNameDESCRIPTION : Platform-specific routine to get the System NameASSUMPTIONS : NonePRE-CONDITIONS :POST-CONDITIONS : NOTES : ================================================================================*/Boolean IPInterface::getSystemName(String& s){ // not supported return false;}/*================================================================================NAME : getNameFormatDESCRIPTION : ASSUMPTIONS : PRE-CONDITIONS :POST-CONDITIONS : NOTES : ================================================================================*/Boolean IPInterface::getNameFormat(String& s) const{ // not supported return false;}/*================================================================================NAME : getProtocolTypeDESCRIPTION : ASSUMPTIONS : PRE-CONDITIONS :POST-CONDITIONS : NOTES : ================================================================================*/Boolean IPInterface::getProtocolType(Uint16& i16) const{ // not supported return false;}/*================================================================================NAME : getOtherTypeDesriptionDESCRIPTION : ASSUMPTIONS : PRE-CONDITIONS :POST-CONDITIONS : NOTES : ================================================================================*/Boolean IPInterface::getOtherTypeDescription(String& s) const{ // not supported return false;}/*================================================================================NAME : getAddressDESCRIPTION : ASSUMPTIONS : PRE-CONDITIONS :POST-CONDITIONS : NOTES : ================================================================================*/Boolean IPInterface::getAddress(String& s) const{ // not supported return false;}/*================================================================================NAME : getSubnetMaskDESCRIPTION : ASSUMPTIONS : PRE-CONDITIONS :POST-CONDITIONS : NOTES : ================================================================================*/Boolean IPInterface::getSubnetMask(String& s) const{ // not supported return false;}/*================================================================================NAME : getAddressTypeDESCRIPTION : ASSUMPTIONS : PRE-CONDITIONS :POST-CONDITIONS : NOTES : ================================================================================*/Boolean IPInterface::getAddressType(Uint16& i16) const{ // not supported return false;}/*================================================================================NAME : getIPVersionSupportDESCRIPTION : ASSUMPTIONS : PRE-CONDITIONS :POST-CONDITIONS : NOTES : ================================================================================*/Boolean IPInterface::getIPVersionSupport(Uint16& i16) const{ // not supported return false;}/*================================================================================NAME : getFrameTypeDESCRIPTION : ASSUMPTIONS : PRE-CONDITIONS :POST-CONDITIONS : NOTES : ================================================================================*/Boolean IPInterface::getFrameType(Uint16& i16) const{ // not supported return false;}/*================================================================================NAME : get_LANInterfaceNameDESCRIPTION : ASSUMPTIONS : PRE-CONDITIONS :POST-CONDITIONS : NOTES : ================================================================================*/String IPInterface::get_LANInterfaceName(void) const{ // This routine must be written to return a value. return String::EMPTY;}/*================================================================================NAME : bindsToLANInterfaceDESCRIPTION : ASSUMPTIONS : PRE-CONDITIONS :POST-CONDITIONS : NOTES : ================================================================================*/Boolean IPInterface::bindsToLANInterface(void) const{ return false;}/*================================================================================NAME : initSystemNameDESCRIPTION : Platform-specific routine to get the System NameASSUMPTIONS : NonePRE-CONDITIONS :POST-CONDITIONS : NOTES : ================================================================================*/void IPInterface::initSystemName(void){ // Do nothing}/*================================================================================NAME : InterfaceList ConstructorDESCRIPTION : Build the list IP InterfacesASSUMPTIONS : NonePRE-CONDITIONS :
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?