EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index

BaseTools/Source/Python/UPT/Object/Parser/InfDefineCommonObject.py

Go to the documentation of this file.
00001 ## @file
00002 # This file is used to define common class objects of [Defines] section for INF file. 
00003 # It will consumed by InfParser
00004 #
00005 # Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>
00006 #
00007 # This program and the accompanying materials are licensed and made available 
00008 # under the terms and conditions of the BSD License which accompanies this 
00009 # distribution. The full text of the license may be found at 
00010 # http://opensource.org/licenses/bsd-license.php
00011 #
00012 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
00013 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
00014 
00015 '''
00016 InfDefineCommonObject
00017 '''
00018 
00019 from Object.Parser.InfCommonObject import InfLineCommentObject
00020 
00021 ## InfDefineImageExeParamItem
00022 #   
00023 class InfDefineImageExeParamItem():
00024     def __init__(self):
00025         self.CName  = ''
00026         self.FeatureFlagExp = ''
00027         self.Comments = InfLineCommentObject()
00028     
00029     def SetCName(self, CName):
00030         self.CName = CName
00031     def GetCName(self):
00032         return self.CName
00033     def SetFeatureFlagExp(self, FeatureFlagExp):
00034         self.FeatureFlagExp = FeatureFlagExp
00035     def GetFeatureFlagExp(self):
00036         return self.FeatureFlagExp
00037 
00038 ## InfDefineEntryPointItem
00039 #      
00040 class InfDefineEntryPointItem(InfDefineImageExeParamItem):
00041     def __init__(self):
00042         InfDefineImageExeParamItem.__init__(self)
00043 
00044 ## InfDefineUnloadImageItem
00045 #      
00046 class InfDefineUnloadImageItem(InfDefineImageExeParamItem):
00047     def __init__(self):
00048         InfDefineImageExeParamItem.__init__(self)
00049 
00050 ## InfDefineConstructorItem
00051 #      
00052 class InfDefineConstructorItem(InfDefineImageExeParamItem):
00053     def __init__(self):
00054         InfDefineImageExeParamItem.__init__(self)
00055         self.SupModList = []
00056         
00057     def SetSupModList(self, SupModList):
00058         self.SupModList = SupModList
00059     def GetSupModList(self):
00060         return self.SupModList
00061 
00062 ## InfDefineDestructorItem
00063 # 
00064 class InfDefineDestructorItem(InfDefineImageExeParamItem):
00065     def __init__(self):
00066         InfDefineImageExeParamItem.__init__(self)
00067         self.SupModList = []
00068         
00069     def SetSupModList(self, SupModList):
00070         self.SupModList = SupModList
00071     def GetSupModList(self):
00072         return self.SupModList
00073             
00074 ## InfDefineLibraryItem
00075 #         
00076 class InfDefineLibraryItem():
00077     def __init__(self):
00078         self.LibraryName = ''
00079         self.Types = []
00080         self.Comments = InfLineCommentObject()
00081             
00082     def SetLibraryName(self, Name):
00083         self.LibraryName = Name
00084     def GetLibraryName(self):
00085         return self.LibraryName
00086     def SetTypes(self, Type):
00087         self.Types = Type
00088     def GetTypes(self):
00089         return self.Types
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines