## @file
# This file is used to define common class objects for INF file.
# 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.
'''
InfCommonObject
'''
## InfLineCommentObject
#
# Comment Object for any line in the INF file
#
# #
# # HeaderComment
# #
# Line # TailComment
#
class InfLineCommentObject():
return self.HeaderComments
return self.TailComments
## CurrentLine
#
class CurrentLine():
## SetLineNo
#
# @param LineNo: LineNo
#
## GetLineNo
#
## SetLineString
#
# @param LineString: Line String content
#
## GetLineString
#
return self.LineString
## SetFileName
#
# @param FileName: File Name
#
## GetFileName
#
##
# Inf Section common data
#
class InfSectionCommonDef():
#
# #
# # HeaderComments at here
# #
# [xxSection] TailComments at here
# data
#
#
# The support arch list of this section
#
self.SupArchList = []
#
# Store all section content
# Key is supported Arch
#
self.AllContent = {}
## SetHeaderComments
#
# @param HeaderComments: HeaderComments
#
## GetHeaderComments
#
return self.HeaderComments
## SetTailComments
#
# @param TailComments: TailComments
#
## GetTailComments
#
return self.TailComments
## SetSupArchList
#
# @param Arch: Arch
#
## GetSupArchList
#
return self.SupArchList
## SetAllContent
#
# @param ArchList: ArchList
# @param Content: Content
#
## GetAllContent
#
return self.AllContent