57const Array<Teuchos::EVerbosityLevel>
58verbosityLevelValues = tuple<Teuchos::EVerbosityLevel>(
68const Array<std::string>
69verbosityLevelNamesStorage = tuple<std::string>(
79Array<const char*> verbosityLevelNames;
87void Teuchos::setVerbosityLevelOption(
88 const std::string &optionName,
89 EVerbosityLevel *verbLevel,
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
Templated array class derived from the STL std::vector.
Basic command line parser for input from (argc,argv[])
Replacement for std::vector that is compatible with the Teuchos Memory Management classes.
#define TEUCHOS_ASSERT(assertion_test)
This macro is throws when an assert fails.
std::string toString(const HashSet< Key > &h)
@ VERB_MEDIUM
Generate more output.
@ VERB_HIGH
Generate a high level of output.
@ VERB_EXTREME
Generate the most output possible.
@ VERB_NONE
Generate no output.
@ VERB_DEFAULT
Generate output as defined by the object.
@ VERB_LOW
Generate only a minimal amount of output.