45 #include "NLPInterfacePack_NLPTesterSetOptions.hpp"
46 #include "OptionsFromStreamPack_StringToBool.hpp"
51 const int local_num_options = 2;
58 const char* local_SOptions[local_num_options] = {
65 namespace NLPInterfacePack {
69 ,
const char opt_grp_name[] )
70 : OptionsFromStreamPack::SetOptionsFromStreamNode(
71 opt_grp_name, local_num_options, local_SOptions )
72 , OptionsFromStreamPack::SetOptionsToTargetBase<
77 int option_num,
const std::string& option_value )
79 namespace ofsp = OptionsFromStreamPack;
80 using ofsp::StringToBool;
83 switch( (local_EOptions)option_num ) {
86 StringToBool(
"print_all", option_value.c_str() )
91 StringToBool(
"throw_exception", option_value.c_str() )
NLPTesterSetOptions(NLPTester *target=0, const char opt_grp_name[]="NLPTester")
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
Testing class for base NLP interface.
void setOption(int option_num, const std::string &option_value)
Overridden from SetOptionsFromStreamNode.
#define TEUCHOS_TEST_FOR_EXCEPT(throw_exception_test)