InfUserExtensionObject.py revision 4fd606d1f5abe38e1f42c38de1d2e895166bd0f4
## @file
# This file is used to define class objects of INF file [UserExtension] section.
# It will consumed by InfParser.
#
# 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.
'''
InfUserExtensionsObject
'''
from Library import GlobalData
class InfUserExtensionItem():
Content = '',
UserId = '',
IdString = ''):
self.SupArchList = []
def GetContent(self):
def GetIdString(self):
def GetSupArchList(self):
return self.SupArchList
##
#
#
#
class InfUserExtensionObject():
return True
#
# IdContent is a list contain UserId and IdString
# For this call the general section header parser, if no definition of
#
for IdContentItem in IdContent:
UserId = ''
else:
IdString = ''
else:
#
# Fill UserExtensionObj members.
#
#
# For COMMON ARCH type, do special check.
#
ExtraData=None)
#
# Each UserExtensions section header must have a unique set
# of UserId, IdString and Arch values.
# This means that the same UserId can be used in more than one
# section header, provided the IdString or Arch values are
# different. The same IdString values can be used in more than
# one section header if the UserId or Arch values are
# different. The same UserId and the same IdString can be used
# in a section header if the Arch values are different in each
# of the section headers.
#
ExtraData=None)
else:
UserExtensionList = []
return True
def GetUserExtension(self):
return self.UserExtension