ip_vms.cpp

来自「Pegasus is an open-source implementation」· C++ 代码 · 共 677 行 · 第 1/2 页

CPP
677
字号
POST-CONDITIONS   : NOTES             : ================================================================================*/InterfaceList::InterfaceList(){}/*================================================================================NAME              : InterfaceList DestructorDESCRIPTION       : NoneASSUMPTIONS       : NonePRE-CONDITIONS    :POST-CONDITIONS   : NOTES             : ================================================================================*/InterfaceList::~InterfaceList(){}/*================================================================================NAME              : findInterfaceDESCRIPTION       : find the requested interfaceASSUMPTIONS       : NonePRE-CONDITIONS    :POST-CONDITIONS   : NOTES             : ================================================================================*/Boolean InterfaceList::findInterface(const String &ifName,			     IPInterface &ipIfInst) const{    // Always return interface not found    return false;}/*================================================================================NAME              : getInterfaceDESCRIPTION       : Get an interface based on an index.ASSUMPTIONS       : NonePRE-CONDITIONS    :POST-CONDITIONS   : NOTES             : ================================================================================*/IPInterface InterfaceList::getInterface(const int index) const{    // give an interface (this should never get called since size will    // always be zero).    IPInterface i;    return i;}/*================================================================================NAME              : sizeDESCRIPTION       : Find the size of the Interface List.ASSUMPTIONS       : NonePRE-CONDITIONS    :POST-CONDITIONS   : NOTES             : ================================================================================*/int InterfaceList::size(void) const{    // no interfaces    return 0;}///////////////////////////////////////////////////////////////////////////// PG_IPRoute related methods///////////////////////////////////////////////////////////////////////////IPRoute::IPRoute(){}IPRoute::~IPRoute(){}/*================================================================================NAME              : getCaptionDESCRIPTION       :ASSUMPTIONS       : PRE-CONDITIONS    :POST-CONDITIONS   : NOTES             : ================================================================================*/Boolean IPRoute::getCaption(String& s) const{  s = String::EMPTY;  return true;}/*================================================================================NAME              : getDescriptionDESCRIPTION       :ASSUMPTIONS       : PRE-CONDITIONS    :POST-CONDITIONS   : NOTES             : ================================================================================*/Boolean IPRoute::getDescription(String& s) const{  s = String::EMPTY;  return true;}/*================================================================================NAME              : getInstallDateDESCRIPTION       : ASSUMPTIONS       : PRE-CONDITIONS    :POST-CONDITIONS   : NOTES             : ================================================================================*/Boolean IPRoute::getInstallDate(CIMDateTime& d) const{  // Not supported. This property is inherited from  // CIM_ManagedSystemElement, but has no useful meaning  // for an IP Route.  return false;}/*================================================================================NAME              : getNameDESCRIPTION       : ASSUMPTIONS       : PRE-CONDITIONS    :POST-CONDITIONS   : NOTES             : ================================================================================*/Boolean IPRoute::getName(String& s) const{  // not supported  return false;}/*================================================================================NAME              : getStatusDESCRIPTION       : ASSUMPTIONS       : PRE-CONDITIONS    :POST-CONDITIONS   : NOTES             : ================================================================================*/Boolean IPRoute::getStatus(String& s) const{  // This property, inherited from CIM_ManagedSystemElement,  // is not relevant.  return false;}/*================================================================================NAME              : getDestinationAddressDESCRIPTION       : ASSUMPTIONS       : PRE-CONDITIONS    :POST-CONDITIONS   : NOTES             : ================================================================================*/Boolean IPRoute::getDestinationAddress(String& s) const{  // not supported  return false;}/*================================================================================NAME              : getDestinationMaskDESCRIPTION       : ASSUMPTIONS       : PRE-CONDITIONS    :POST-CONDITIONS   : NOTES             : ================================================================================*/Boolean IPRoute::getDestinationMask(String& s) const{  // not supported  return false;}/*================================================================================NAME              : getNextHopDESCRIPTION       : ASSUMPTIONS       : PRE-CONDITIONS    :POST-CONDITIONS   : NOTES             : ================================================================================*/Boolean IPRoute::getNextHop(String& s) const{  // not supported  return false;}/*================================================================================NAME              : getIsStaticDESCRIPTION       : ASSUMPTIONS       : PRE-CONDITIONS    :POST-CONDITIONS   : NOTES             : ================================================================================*/Boolean IPRoute::getIsStatic(Boolean& s) const{  // not supported  return false;}/*================================================================================NAME              : getAddressTypeDESCRIPTION       : ASSUMPTIONS       : PRE-CONDITIONS    :POST-CONDITIONS   : NOTES             : ================================================================================*/Boolean IPRoute::getAddressType(Uint16& i16) const{  // not supported  return false;}/*================================================================================NAME              : RouteList ConstructorDESCRIPTION       : Build the list of IP RoutesASSUMPTIONS       : NonePRE-CONDITIONS    :POST-CONDITIONS   : NOTES             : ================================================================================*/RouteList::RouteList(){}/*================================================================================NAME              : RouteList DestructorDESCRIPTION       : NoneASSUMPTIONS       : NonePRE-CONDITIONS    :POST-CONDITIONS   : NOTES             : ================================================================================*/RouteList::~RouteList(){}/*================================================================================NAME              : findRouteDESCRIPTION       : Find the requested IP Route based on the destination		  : address, destination mask, and address type.ASSUMPTIONS       : NonePRE-CONDITIONS    :POST-CONDITIONS   : NOTES             : ================================================================================*/Boolean RouteList::findRoute(const String &destAddr,			     const String &destMask,			     const Uint16 &addrType,			     IPRoute      &ipRInst) const{    // Always return route not found    return false;}/*================================================================================NAME              : getRouteDESCRIPTION       : Get an IP Route based on an index.ASSUMPTIONS       : NonePRE-CONDITIONS    :POST-CONDITIONS   : NOTES             : ================================================================================*/IPRoute RouteList::getRoute(const int index) const{    // give a route (this should never get called since size will    // always be zero).    IPRoute i;    return i;}/*================================================================================NAME              : sizeDESCRIPTION       : Find the size of the Route List.ASSUMPTIONS       : NonePRE-CONDITIONS    :POST-CONDITIONS   : NOTES             : ================================================================================*/int RouteList::size(void) const{    return 0;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?