## @file
# generate capsule
#
# Copyright (c) 2007, 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.
#
##
# Import Modules
#
import Ffs
import StringIO
## base class for capsule data
#
#
class CapsuleData:
## The constructor
#
# @param self The object pointer
pass
## generate capsule data
#
# @param self The object pointer
pass
## FFS class for capsule data
#
#
## The constructor
#
# @param self The object pointer
#
## generate FFS capsule data
#
# @param self The object pointer
# @retval string Generated file name
#
return FfsFile
## FV class for capsule data
#
#
## The constructor
#
# @param self The object pointer
#
self.CapsuleName = None
## generate FV capsule data
#
# @param self The object pointer
# @retval string Generated file name
#
FvObj.CapsuleName = None
return FvFile
else:
return FvFile
## FD class for capsule data
#
#
## The constructor
#
# @param self The object pointer
#
self.CapsuleName = None
## generate FD capsule data
#
# @param self The object pointer
# @retval string Generated file name
#
return FdFile
else:
return FdFile
## AnyFile class for capsule data
#
#
## The constructor
#
# @param self The object pointer
#
## generate AnyFile capsule data
#
# @param self The object pointer
# @retval string Generated file name
#