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