InfMisc.py revision 4fd606d1f5abe38e1f42c38de1d2e895166bd0f4
## @file
# This file is used to define class objects of INF file miscellaneous.
#
# Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>
#
# This program and the accompanying materials are licensed and made available
# under the terms and conditions of the BSD License which accompanies this
# distribution. The full text of the license may be found at
#
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
'''
InfMisc
'''
##
# BootModeObject
#
class InfBootModeObject():
def GetSupportedBootModes(self):
return self.SupportedBootModes
def GetHelpString(self):
return self.HelpString
##
# EventObject
#
class InfEventObject():
def GetEventType(self):
def GetHelpString(self):
return self.HelpString
##
# HobObject
#
class InfHobObject():
self.SupArchList = []
def GetHobType(self):
def GetSupArchList(self):
return self.SupArchList
def GetHelpString(self):
return self.HelpString
##
# InfSpecialCommentObject
#
for Item in SepcialSectionList:
else:
ObjList = []
return True
def GetSpecialComments(self):
return self.SpecialComments
## ErrorInInf
#
# An encapsulate of Error for INF parser.
#
if ErrorCode == None:
if LineInfo == None: