\r
The definition of CFormPkg's member function\r
\r
-Copyright (c) 2004 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2011, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
which accompanies this distribution. The full text of the license may be found at \r
}\r
};\r
\r
+class CIfrGuid : public CIfrObj, public CIfrOpHeader {\r
+private:\r
+ EFI_IFR_GUID *mGuid;\r
+\r
+public:\r
+ CIfrGuid (UINT8 Size) : CIfrObj (EFI_IFR_GUID_OP, (CHAR8 **)&mGuid, sizeof (EFI_IFR_GUID)+Size),\r
+ CIfrOpHeader (EFI_IFR_GUID_OP, &mGuid->Header, sizeof (EFI_IFR_GUID)+Size) {\r
+ memset (&mGuid->Guid, 0, sizeof (EFI_GUID));\r
+ }\r
+\r
+ VOID SetGuid (IN EFI_GUID *Guid) {\r
+ memcpy (&mGuid->Guid, Guid, sizeof (EFI_GUID));\r
+ }\r
+\r
+ VOID SetData (IN UINT8* DataBuff, IN UINT8 Size) {\r
+ memcpy ((UINT8 *)mGuid + sizeof (EFI_IFR_GUID), DataBuff, Size);\r
+ }\r
+};\r
+\r
class CIfrDup : public CIfrObj, public CIfrOpHeader {\r
private:\r
EFI_IFR_DUP *mDup;\r