Teuchos: Preferred way of printing docstrings #6702
Labels
CLOSED_DUE_TO_INACTIVITY
Issue or PR has been closed by the GitHub Actions bot due to inactivity.
MARKED_FOR_CLOSURE
Issue or PR is marked for auto-closure by the GitHub Actions bot.
pkg: Teuchos
Issues primarily dealing with the Teuchos Package
type: question
Question
@trilinos/teuchos
What is the preferred way of printing docstrings from a parameter list?
For our application, we want to print all parameters that can be set, their default values, and their docstrings. This so we have the documentation of the parameters all in one place. I'm confused as to what would be the right way to obtain those.
I expected
validateParameters
orvalidateParametersAndSetDefaults
or something alike to set the docstrings, but it seems like onlysetParameters
sets it. If I look at for instanceBelos::BlockGmresSolMgr
, I see that it has a methodgetValidParameters
that sets the docstrings. Would the "right" way be to implementgetValidParameters
for every class and recursively callgetValidParameters
+setParameters
for any data members? And then when we want to print them, apparently I have to do this?Also, why are these
getValidParameters
methods not static so you can get the parameters before you construct the class?The text was updated successfully, but these errors were encountered: