Functions for parsing JDFTx input files. More...
#include <electronic/common.h>
#include <vector>
Functions | |
std::vector< std::pair< string, string > > | readInputFile (string filename) |
Read input from file into an array of command/argument-list pairs. This routine handles comments, line continuation as well as environment substitution. In MPI mode, the input will be read only on head and distributed to all the processes. More... | |
void | parse (std::vector< std::pair< string, string > > input, Everything &everything, bool printDefaults=false) |
Parse input and initialize everything. More... | |
void | printDefaultTemplate (Everything &e) |
Output command documentation in the form of an input file template. This will output the comments for all the commands, along with the default command line, if any. More... | |
void | writeCommandManual (Everything &e, string section) |
Output command docuemntation in Doxygen format which gets converted to the HTML and LaTeX manuals. More... | |
Functions for parsing JDFTx input files.
void parse | ( | std::vector< std::pair< string, string > > | input, |
Everything & | everything, | ||
bool | printDefaults = false |
||
) |
Parse input and initialize everything.
input | List o commands and arguments as obtained by readInputFile() |
everything | Reference to everything to initialize |
printDefaults | If true, print status of commands that were invoked by default in addition to those invoked manually |
void printDefaultTemplate | ( | Everything & | e | ) |
Output command documentation in the form of an input file template. This will output the comments for all the commands, along with the default command line, if any.
e | A reference to Everything |
Read input from file into an array of command/argument-list pairs. This routine handles comments, line continuation as well as environment substitution. In MPI mode, the input will be read only on head and distributed to all the processes.
filename | Name of file to read, or empty for reading from stdin |
void writeCommandManual | ( | Everything & | e, |
string | section | ||
) |
Output command docuemntation in Doxygen format which gets converted to the HTML and LaTeX manuals.
e | A reference to Everything |
section | Which executable to generate documentation for i.e. only include commands whose section matches this |