/* 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,2013 */ /* */ /* 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 #endif namespace PRDF { //-------------------------------------------------------------------- // Forward References //-------------------------------------------------------------------- /** **One line Class description** @author Doug Gilbert */ class TryResolution: public Resolution { public: /** Constructor
*/ TryResolution(Resolution &tryRes, Resolution & defaultRes); TryResolution(); /* Destructor
*/ // ~TryResolution(); /** ** description **
*/ /** Resolve by calling TryResolution else call DefaultResolution
*/ 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) {} } // end namespace PRDF #endif /* xspprdTryResolution_h */