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 -------------------------------------------------------------------------------
10 License
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 
26 Class
27  Foam::helpFunctionObject
28 
29 Description
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 
38 See also
39  Foam::helpType
40  Foam::functionObject
41 
42 SourceFiles
43  helpFunctionObject.C
44 
45 \*---------------------------------------------------------------------------*/
46 
47 #ifndef helpFunctionObject_H
48 #define helpFunctionObject_H
49 
50 #include "helpType.H"
51 
52 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
53 
54 namespace Foam
55 {
56 namespace helpTypes
57 {
58 
59 /*---------------------------------------------------------------------------*\
60  Class helpFunctionObject Declaration
61 \*---------------------------------------------------------------------------*/
62 
64 :
65  public helpType
66 {
67 
68 public:
69 
70  //- Runtime type information
71  TypeName("helpFunctionObject");
72 
73  //- Constructor
75 
76  //- Destructor
77  virtual ~helpFunctionObject();
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 
90 
91 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
92 
93 } // End namespace helpTypes
94 } // End namespace Foam
95 
96 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
97 
98 #endif
99 
100 // ************************************************************************* //
Foam::argList
Extract command arguments and options from the supplied argc and argv parameters.
Definition: argList.H:123
Foam::helpTypes::helpFunctionObject::execute
virtual void execute(const argList &args, const fvMesh &mesh)
Execute the help.
Foam::helpTypes::helpFunctionObject::TypeName
TypeName("helpFunctionObject")
Runtime type information.
helpFunctionObject
This class provides help for functionObjects. When no additional arguments are given,...
helpType.H
Foam::helpTypes::helpFunctionObject
Definition: helpFunctionObject.H:66
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:6
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:85
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::helpTypes::helpFunctionObject::helpFunctionObject
helpFunctionObject()
Constructor.
Foam::helpTypes::helpFunctionObject::init
virtual void init()
Initialise - typically setting static variables,.
args
Foam::argList args(argc, argv)
Foam::helpTypes::helpFunctionObject::~helpFunctionObject
virtual ~helpFunctionObject()
Destructor.
Foam::helpType
Base class for foam help classes.
Definition: helpType.H:56