Private Member Functions | |
virtual std::string | msg () const |
virtual bool | test (int nb) const |
virtual void | testValidity () const |
Definition at line 61 of file OBTOptionArgHandler.cpp.
virtual std::string OBT::Imply::msg | ( | ) | const [inline, private, virtual] |
Implements OBT::ArgsOp.
Definition at line 63 of file OBTOptionArgHandler.cpp.
virtual bool OBT::Imply::test | ( | int | nb | ) | const [inline, private, virtual] |
Implements OBT::ArgsOp.
Definition at line 64 of file OBTOptionArgHandler.cpp.
virtual void OBT::Imply::testValidity | ( | ) | const [inline, private, virtual] |
Reimplemented from OBT::ArgsOp.
Definition at line 65 of file OBTOptionArgHandler.cpp.
References OBT::ArgsOp::_optionsList, and OBT::ArgsOp::throwErrorMsg().
00066 { 00067 bool ok = true ; 00068 bool mustBePresent = ( *_optionsList.begin() )->isPresent() ; 00069 for( ListArg::const_iterator option = _optionsList.begin() ; 00070 option != _optionsList.end() && ok ; 00071 option++ ) 00072 { 00073 ok = ok && mustBePresent == ( *option )->isPresent() ; 00074 mustBePresent = ( *option )->isPresent() ; 00075 } 00076 if( !ok ) throwErrorMsg() ; 00077 }