SmartSwitch/sswSwitchParmsFile.cpp
//******************************************************************************
//******************************************************************************
//******************************************************************************
// Base class override: Execute a command from the command file to set a 
// member variable.  Only process commands for the target section.This is
// called by the associated command file object for each command in the file.
Base class override: Execute a command from the command file to set a
member variable.  Only process commands for the target section.This is
called by the associated command file object for each command in the file.
Base class override : Execute a command from the command file to set a member variable . Only process commands for the target section . This is called by the associated command file object for each command in the file .
void SwitchParmsFile::execute(Ris::CmdLineCmd* aCmd)
{
   if (!isTargetSection(aCmd)) return;
   if (aCmd->isCmd("TimerPeriod"))           mTimerPeriod = aCmd->argInt(1);
   if (aCmd->isCmd("TestMode"))              mTestMode = aCmd->argInt(1);
   if (aCmd->isCmd("InitialValueA"))         mInitialValueA = aCmd->argFloat(1);
   if (aCmd->isCmd("InitialValueB"))         mInitialValueB = aCmd->argFloat(1);
   if (aCmd->isCmd("AlphaFilterTs"))         mAlphaFilterTs = aCmd->argFloat(1);
   if (aCmd->isCmd("AlphaFilterTc"))         mAlphaFilterTc = aCmd->argFloat(1);
   if (aCmd->isCmd("FuzzyToCrispThreshLo"))  mFuzzyToCrispThreshLo = aCmd->argFloat(1);
   if (aCmd->isCmd("FuzzyToCrispThreshHi"))  mFuzzyToCrispThreshHi = aCmd->argFloat(1);
   if (aCmd->isCmd("ThresholderM2"))     nestedPush(aCmd, &mThresholderParmsM2Wrapper);
   if (aCmd->isCmd("ThresholderM1"))     nestedPush(aCmd, &mThresholderParmsM1Wrapper);
   if (aCmd->isCmd("ThresholderP1"))     nestedPush(aCmd, &mThresholderParmsP1Wrapper);
   if (aCmd->isCmd("ThresholderP2"))     nestedPush(aCmd, &mThresholderParmsP2Wrapper);
}
void SwitchParmsFile :: execute ( Ris :: CmdLineCmd * aCmd ) { if ( ! isTargetSection ( aCmd ) ) return ; if ( aCmd -> isCmd ( " " ) ) mTimerPeriod = aCmd -> argInt ( 1 ) ; if ( aCmd -> isCmd ( " " ) ) mTestMode = aCmd -> argInt ( 1 ) ; if ( aCmd -> isCmd ( " " ) ) mInitialValueA = aCmd -> argFloat ( 1 ) ; if ( aCmd -> isCmd ( " " ) ) mInitialValueB = aCmd -> argFloat ( 1 ) ; if ( aCmd -> isCmd ( " " ) ) mAlphaFilterTs = aCmd -> argFloat ( 1 ) ; if ( aCmd -> isCmd ( " " ) ) mAlphaFilterTc = aCmd -> argFloat ( 1 ) ; if ( aCmd -> isCmd ( " " ) ) mFuzzyToCrispThreshLo = aCmd -> argFloat ( 1 ) ; if ( aCmd -> isCmd ( " " ) ) mFuzzyToCrispThreshHi = aCmd -> argFloat ( 1 ) ; if ( aCmd -> isCmd ( " " ) ) nestedPush ( aCmd , & mThresholderParmsM2Wrapper ) ; if ( aCmd -> isCmd ( " " ) ) nestedPush ( aCmd , & mThresholderParmsM1Wrapper ) ; if ( aCmd -> isCmd ( " " ) ) nestedPush ( aCmd , & mThresholderParmsP1Wrapper ) ; if ( aCmd -> isCmd ( " " ) ) nestedPush ( aCmd , & mThresholderParmsP2Wrapper ) ; }
Base class override: Execute a command from the command file to set a
member variable.
Base class override : Execute a command from the command file to set a member variable .