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