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