STIR 6.4.0
demo3.cxx File Reference

A modification of demo2.cxx that parses all parameters from a parameter file. More...

Namespaces

namespace  stir
 Namespace for the STIR library (and some/most of its applications)
 

Functions

int main (int argc, char **argv)
 

Detailed Description

A modification of demo2.cxx that parses all parameters from a parameter file.

It illustrates

  • basic class derivation principles
  • how to use ParsingObject to have automatic capabilities of parsing parameters files (and interactive questions to the user)
  • how most STIR programs parse the parameter files.

Note that the same functionality could be provided without deriving a new class from ParsingObject. One could have a KeyParser object in main() and fill it in directly.

See README.txt in the directory where this file is located.

Author
Kris Thielemans