helpSolver.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) 2015 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::helpSolver
26 
27 Description
28  This class provides help for solvers. When no additional arguments
29  are given, the utility outputs all known solvers.
30 
31  Usage:
32  \plaintable
33  \c -browse <patch type> | open documentation for object in browser
34  \endplaintable
35 
36 SeeAlso
37  Foam::helpType
38 
39 SourceFiles
40  helpSolver.C
41 
42 \*---------------------------------------------------------------------------*/
43 
44 #ifndef helpSolver_H
45 #define helpSolver_H
46 
47 #include "helpType.H"
48 
49 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 
51 namespace Foam
52 {
53 namespace helpTypes
54 {
55 
56 /*---------------------------------------------------------------------------*\
57  Class helpSolver Declaration
58 \*---------------------------------------------------------------------------*/
59 
60 class helpSolver
61 :
62  public helpType
63 {
64 
65 public:
66 
67  //- Runtime type information
68  TypeName("helpSolver");
69 
70  //- Constructor
71  helpSolver();
72 
73  //- Destructor
74  virtual ~helpSolver();
75 
76 
77  // Member Functions
78 
79  //- Initialise - typically setting static variables,
80  // e.g. command line arguments
81  virtual void init();
82 
83  //- Execute the help
84  virtual void execute(const argList& args, const fvMesh& mesh);
85 };
86 
87 
88 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
89 
90 } // End namespace helpTypes
91 } // End namespace Foam
92 
93 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
94 
95 #endif
96 
97 // ************************************************************************* //
helpSolver
This class provides help for solvers. When no additional arguments are given, the utility outputs all...
Foam::argList
Extract command arguments and options from the supplied argc and argv parameters.
Definition: argList.H:97
Foam::helpTypes::helpSolver::~helpSolver
virtual ~helpSolver()
Destructor.
Foam::helpTypes::helpSolver::helpSolver
helpSolver()
Constructor.
Foam::helpTypes::helpSolver::execute
virtual void execute(const argList &args, const fvMesh &mesh)
Execute the help.
helpType.H
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:18
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::helpTypes::helpSolver
Definition: helpSolver.H:63
args
Foam::argList args(argc, argv)
Foam::helpTypes::helpSolver::TypeName
TypeName("helpSolver")
Runtime type information.
Foam::helpType
Base class for foam help classes.
Definition: helpType.H:55
Foam::helpTypes::helpSolver::init
virtual void init()
Initialise - typically setting static variables,.