/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/usr/diag/prdf/common/framework/resolution/xspprdTryResolution.h $ */ /* */ /* OpenPOWER HostBoot Project */ /* */ /* COPYRIGHT International Business Machines Corp. 1998,2014 */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); */ /* you may not use this file except in compliance with the License. */ /* You may obtain a copy of the License at */ /* */ /* http://www.apache.org/licenses/LICENSE-2.0 */ /* */ /* Unless required by applicable law or agreed to in writing, software */ /* distributed under the License is distributed on an "AS IS" BASIS, */ /* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */ /* implied. See the License for the specific language governing */ /* permissions and limitations under the License. */ /* */ /* 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 */