doxygenXmlParser.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | Copyright (C) 2012-2014 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::doxygenXmlParser
26 
27 Description
28  Parser for doxygen XML
29 
30 SourceFiles
31  doxygenXmlParser.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef doxygenXmlParser_H
36 #define doxygenXmlParser_H
37 
38 #include "dictionary.H"
39 #include "IFstream.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 
46 /*---------------------------------------------------------------------------*\
47  Class doxygenXmlParser Declaration
48 \*---------------------------------------------------------------------------*/
49 
50 class doxygenXmlParser
51 :
52  public dictionary
53 {
54 
55 public:
56 
57  //- Construct from components
59  (
60  const fileName& fName,
61  const string& startTag,
62  const string& searchStr,
63  const bool exactMatch,
64  const word& ext
65  );
66 
67 
68  // Member functions
69 
70  //- Skip past a block
71  void skipBlock(IFstream& is, const word& blockName) const;
72 
73  //- Skip forward to block
74  void skipForward(IFstream& is, const word& blockName) const;
75 
76  //- Return the entry
77  template<class Type>
78  void getEntry(IFstream& is, Type& entry) const;
79 
80  //- Return the entry value
81  template<class Type>
82  void getValue(IFstream& is, Type& entry) const;
83 };
84 
85 
86 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
87 
88 } // End namespace Foam
89 
90 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
91 
92 #ifdef NoRepository
94 #endif
95 
96 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
97 
98 #endif
99 
100 // ************************************************************************* //
Foam::entry
A keyword and a list of tokens is an 'entry'.
Definition: entry.H:65
Foam::doxygenXmlParser::skipForward
void skipForward(IFstream &is, const word &blockName) const
Skip forward to block.
Foam::word
A class for handling words, derived from string.
Definition: word.H:59
Foam::fileName
A class for handling file names.
Definition: fileName.H:69
Foam::doxygenXmlParser
Parser for doxygen XML.
Definition: doxygenXmlParser.H:49
Foam::IFstream
Input from file stream.
Definition: IFstream.H:81
Foam::doxygenXmlParser::skipBlock
void skipBlock(IFstream &is, const word &blockName) const
Skip past a block.
Foam::doxygenXmlParser::getValue
void getValue(IFstream &is, Type &entry) const
Return the entry value.
Foam::doxygenXmlParser::getEntry
void getEntry(IFstream &is, Type &entry) const
Return the entry.
doxygenXmlParserTemplates.C
IFstream.H
Foam::dictionary
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:137
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
dictionary.H
Foam::doxygenXmlParser::doxygenXmlParser
doxygenXmlParser(const fileName &fName, const string &startTag, const string &searchStr, const bool exactMatch, const word &ext)
Construct from components.