Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

DC_FdirCheck.cpp

00001 // 00002 // Copyright 2004 P&P Software GmbH - All Rights Reserved 00003 // 00004 // DC_FdirCheck.cpp 00005 // 00006 // Version 1.0 00007 // Date 24.06.03 00008 // Author R. Totaro 00009 00010 #include "../GeneralInclude/CompilerSwitches.h" 00011 #include "../GeneralInclude/DebugSupport.h" 00012 #include "../GeneralInclude/ClassId.h" 00013 #include "../GeneralInclude/Constants.h" 00014 #include "../Base/CC_RootObject.h" 00015 #include "DC_FdirCheck.h" 00016 00017 DC_FdirCheck::DC_FdirCheck(void) { 00018 pRecoveryAction=pNULL; 00019 pFdiCheck=pNULL; 00020 setClassId(ID_FDIRCHECK); 00021 } 00022 00023 TD_ActionOutcome DC_FdirCheck::doAction(void) { 00024 assert(isObjectConfigured()); 00025 00026 TD_ActionOutcome outcome=pFdiCheck->execute(); 00027 00028 if (outcome==ACTION_FAILURE) 00029 outcome=pRecoveryAction->execute(); 00030 00031 return outcome; 00032 } 00033 00034 void DC_FdirCheck::setFdiCheck(PunctualAction *pFdiCheck) { 00035 assert(pFdiCheck); 00036 this->pFdiCheck=pFdiCheck; 00037 } 00038 00039 PunctualAction *DC_FdirCheck::getFdiCheck(void) { 00040 assert(pFdiCheck); 00041 return pFdiCheck; 00042 } 00043 00044 void DC_FdirCheck::setRecoveryAction(RecoveryAction *pRecoveryAction) { 00045 assert(pRecoveryAction); 00046 this->pRecoveryAction=pRecoveryAction; 00047 } 00048 00049 RecoveryAction *DC_FdirCheck::getRecoveryAction(void) { 00050 assert(pRecoveryAction); 00051 return pRecoveryAction; 00052 } 00053 00054 bool DC_FdirCheck::isObjectConfigured(void) { 00055 return (PunctualAction::isObjectConfigured() && 00056 pRecoveryAction!=pNULL && pFdiCheck!=pNULL); 00057 }
Copyright 2003 P&P Software GmbH - All Rights Reserved