40 #include <lifev/core/util/StringData.hpp> 41 #include <lifev/core/util/LifeDebug.hpp> 64 M_list.push_back ( StringData ( str, val, help ) );
69 c << M_title <<
" : " << std::endl;
70 for ( std::vector<StringData>::const_iterator ds = M_list.begin();
71 ds != M_list.end(); ++ds )
73 c <<
" " << ds->string() <<
" : " << ds->help();
76 c <<
" (" << ds->value() <<
")";
84 std::vector<StringData>::const_iterator ds = M_list.begin();
85 while ( ds != M_list.end() )
87 if ( ds->string() == str )
93 std::ostringstream exception;
95 << str <<
" is not in the list of possible choices for '" 97 throw std::invalid_argument ( exception.str() );
int32_type Int
Generic integer data.
void updateInverseJacobian(const UInt &iQuadPt)
StringData(std::string str, Int val, std::string help)
void add(std::string str, Int val, std::string help)
void showMe(std::ostream &c=std::cout, bool val=false) const
State printing function (val=true:the values are shown)
StringDataList(std::string title)
Int value(const std::string &str) const