summaryrefslogtreecommitdiffstats
path: root/src/usr/diag/prdf/common/framework/resolution/xspprdTryResolution.h
diff options
context:
space:
mode:
authorZane Shelley <zshelle@us.ibm.com>2012-11-15 10:40:06 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-11-16 22:03:16 -0600
commitd33218560b7b2bf2ebc4b5a33fed8aa77b8793e6 (patch)
tree7fff02186430b3d6c87b1238311e217b9cf6e37c /src/usr/diag/prdf/common/framework/resolution/xspprdTryResolution.h
parent9342e9d7df794e5bcb352799a989d5a9f40e4ca0 (diff)
downloadtalos-hostboot-d33218560b7b2bf2ebc4b5a33fed8aa77b8793e6.tar.gz
talos-hostboot-d33218560b7b2bf2ebc4b5a33fed8aa77b8793e6.zip
Merged common FSP and HB PRD code to prdf/common/
Change-Id: Iac94c3690598b7263de230934b911bb4ced34557 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/2350 Tested-by: Jenkins Server Reviewed-by: Bradley W. Bishop <bradleyb@us.ibm.com> Reviewed-by: Zane Shelley <zshelle@us.ibm.com> Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/2368 Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/diag/prdf/common/framework/resolution/xspprdTryResolution.h')
-rwxr-xr-xsrc/usr/diag/prdf/common/framework/resolution/xspprdTryResolution.h134
1 files changed, 134 insertions, 0 deletions
diff --git a/src/usr/diag/prdf/common/framework/resolution/xspprdTryResolution.h b/src/usr/diag/prdf/common/framework/resolution/xspprdTryResolution.h
new file mode 100755
index 000000000..2dcf9cffc
--- /dev/null
+++ b/src/usr/diag/prdf/common/framework/resolution/xspprdTryResolution.h
@@ -0,0 +1,134 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/usr/diag/prdf/common/framework/resolution/xspprdTryResolution.h $ */
+/* */
+/* IBM CONFIDENTIAL */
+/* */
+/* COPYRIGHT International Business Machines Corp. 1998,2012 */
+/* */
+/* p1 */
+/* */
+/* Object Code Only (OCO) source materials */
+/* Licensed Internal Code Source Materials */
+/* IBM HostBoot Licensed Internal Code */
+/* */
+/* The source code for this program is not published or otherwise */
+/* divested of its trade secrets, irrespective of what has been */
+/* deposited with the U.S. Copyright Office. */
+/* */
+/* Origin: 30 */
+/* */
+/* IBM_PROLOG_END_TAG */
+
+#ifndef xspprdTryResolution_h
+#define xspprdTryResolution_h
+
+// Class Description *************************************************
+//
+// Name: TryResolution
+// Base class: Resolution
+//
+// Description: Try a resolution - if it does not work then
+// call a default resolution
+// Usage:
+//
+// End Class Description *********************************************
+
+//--------------------------------------------------------------------
+// Includes
+//--------------------------------------------------------------------
+#if !defined(iipResolution_h)
+#include <iipResolution.h>
+#endif
+
+//--------------------------------------------------------------------
+// Forward References
+//--------------------------------------------------------------------
+/**
+ **One line Class description**
+ @author Doug Gilbert
+ */
+class TryResolution: public Resolution
+{
+public:
+ /**
+ Constructor
+ <ul>
+ <br><b>Parameter: </b> Resolution to try first
+ <br><b>Parameter: </b> Resolution if the try resolution fails
+ <br><b>Returns: </b> Nothing
+ <br><b>Requirements:</b> None
+ <br><b>Promises: </b> Object created
+ <br><b>Exceptions: </b> None
+ <br><b>Notes: </b>
+ </ul><br>
+ */
+ TryResolution(Resolution &tryRes, Resolution & defaultRes);
+ TryResolution();
+
+ /*
+ Destructor
+ <ul>
+ <br><b>Parameters: </b> None.
+ <br><b>Returns: </b> No value returned
+ <br><b>Requirements:</b> None.
+ <br><b>Promises: </b> None.
+ <br><b>Exceptions: </b> None.
+ <br><b>Notes: </b> Compiler default is sufficient
+ </ul><br>
+ */
+ // ~TryResolution();
+
+ /**
+ ** description **
+ <ul>
+ <br><b>Parameters: </b> parms
+ <br><b>Returns: </b> return
+ <br><b>Requirements:</b> preconditions
+ <br><b>Promises: </b> postconditions
+ <br><b>Exceptions: </b> None.
+ <br><b>Notes: </b> optional
+ </ul><br>
+ */
+
+ /**
+ Resolve by calling TryResolution else call DefaultResolution
+ <ul>
+ <br><b>Parameters: </b> ServiceDataCollector
+ <br><b>Returns: </b> Return code [SUCCESS | nonZero]
+ <br><b>Requirements:</b> none.
+ <br><b>Promises: </b> if(TryResolution.Resolve() != SUCCESS)
+ then xDefaultResolution.Resolve();
+ <br><b>Exceptions: </b> None.
+ </ul><br>
+ */
+ virtual int32_t Resolve(STEP_CODE_DATA_STRUCT & error);
+
+private: // functions
+private: // Data
+
+Resolution * xTryResolution;
+Resolution * xDefaultResolution;
+
+};
+
+inline
+TryResolution::TryResolution(Resolution &tryRes, Resolution & defaultRes)
+: xTryResolution(&tryRes), xDefaultResolution(&defaultRes) {}
+
+inline
+TryResolution::TryResolution()
+ : xTryResolution(NULL), xDefaultResolution(NULL) {}
+
+
+#endif /* xspprdTryResolution_h */
+
+// Change Log *********************************************************
+//
+// Flag Reason Vers Date Coder Description
+// ---- --------- ---- -------- -------- -------------------------------
+// d49274.xx v4r5 12/28/99 dgilbert Initial Creation
+// f522283 300 09/27/05 dgilbert Make flyweight-able
+//
+// End Change Log *****************************************************
OpenPOWER on IntegriCloud