57 const Array<Teuchos::EVerbosityLevel>
58 verbosityLevelValues = tuple<Teuchos::EVerbosityLevel>(
68 const Array<std::string>
69 verbosityLevelNamesStorage = tuple<std::string>(
79 Array<const char*> verbosityLevelNames;
87 void Teuchos::setVerbosityLevelOption(
88 const std::string &optionName,
90 const std::string &docString,
91 CommandLineProcessor *clp,
95 const int numVerbLevels =
implicit_cast<
int>(verbosityLevelValues.size());
97 if ( !verbosityLevelNames.size() ) {
98 verbosityLevelNames = tuple<const char*>(
99 verbosityLevelNamesStorage[0].c_str(),
100 verbosityLevelNamesStorage[1].c_str(),
101 verbosityLevelNamesStorage[2].c_str(),
102 verbosityLevelNamesStorage[3].c_str(),
103 verbosityLevelNamesStorage[4].c_str(),
104 verbosityLevelNamesStorage[5].c_str()
112 TEUCHOS_ASSERT( implicit_cast<int>(verbosityLevelNamesStorage.size()) == numVerbLevels );
113 TEUCHOS_ASSERT( implicit_cast<int>(verbosityLevelNames.size()) == numVerbLevels );
116 optionName.c_str(), verbLevel,
117 numVerbLevels, &verbosityLevelValues[0], &verbosityLevelNames[0],
118 docString.c_str(), required
EVerbosityLevel
Verbosity level.
Generate a high level of output.
Generate only a minimal amount of output.
Generate the most output possible.
std::string toString(const any &rhs)
Converts the value in any to a std::string.
TypeTo implicit_cast(const TypeFrom &t)
Perform an implicit cast of concrete types with the casted object returned by value.
Templated array class derived from the STL std::vector.
Basic command line parser for input from (argc,argv[])
#define TEUCHOS_ASSERT(assertion_test)
This macro is throws when an assert fails.
Generate output as defined by the object.
Replacement for std::vector that is compatible with the Teuchos Memory Management classes...