JDFTx  1.2.0
parser.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------
2 Copyright 2011 Ravishankar Sundararaman
3 
4 This file is part of JDFTx.
5 
6 JDFTx is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10 
11 JDFTx is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15 
16 You should have received a copy of the GNU General Public License
17 along with JDFTx. If not, see <http://www.gnu.org/licenses/>.
18 -------------------------------------------------------------------*/
19 
20 #ifndef JDFTX_PARSER_H
21 #define JDFTX_PARSER_H
22 
27 #include <electronic/common.h>
28 #include <vector>
29 
35 std::vector< std::pair<string,string> > readInputFile(string filename);
36 
41 void parse(std::vector< std::pair<string,string> > input, Everything &everything, bool printDefaults=false);
42 
47 
51 void writeCommandManual(Everything& e, string section);
52 
53 #endif // JDFTX_PARSER_H
void parse(std::vector< std::pair< string, string > > input, Everything &everything, bool printDefaults=false)
Parse input and initialize everything.
void printDefaultTemplate(Everything &e)
Output command documentation in the form of an input file template. This will output the comments for...
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...
Definition: Everything.h:41
void writeCommandManual(Everything &e, string section)
Output command docuemntation in Doxygen format which gets converted to the HTML and LaTeX manuals...