Loading...
Searching...
No Matches
fileFormats.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) 2022 OpenCFD Ltd.
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
26Namespace
27 Foam::fileFormats
28
29Description
30 Namespace to isolate specifics for file formats,
31 and some common utilities.
32
33SourceFiles
34 fileFormats.C
35
36\*---------------------------------------------------------------------------*/
37
38#ifndef Foam_fileFormats_H
39#define Foam_fileFormats_H
40
41#include "word.H"
42
43// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44
45namespace Foam
46{
47
48// Forward Declarations
49class dictionary;
50
51// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
52
53namespace fileFormats
54{
55
56//- Find "formatOptions" in a top-level dictionary.
57//- Extract and merge 'default' + formatName values.
58//
59// \returns dictionary of merged formatOptions
61(
63 const dictionary& dict,
64
66 const word& formatName,
67
69 const word& entryName = "formatOptions"
70);
71
72//- Find "formatOptions" in a top-level dictionary,
73//- and optional override dictionary.
74//- Extract and merge 'default' + formatName values.
75//
76// \returns dictionary of merged formatOptions
78(
80 const dictionary& dict,
81
83 const dictionary& altDict,
84
86 const word& formatName,
87
89 const word& entryName = "formatOptions"
90);
91
92
93// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
94
95} // End namespace fileFormats
96} // End namespace Foam
97
98// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
99
100#endif
101
102// ************************************************************************* //
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition dictionary.H:133
Namespace to isolate specifics for file formats, and some common utilities.
dictionary getFormatOptions(const dictionary &dict, const word &formatName, const word &entryName="formatOptions")
Find "formatOptions" in a top-level dictionary. Extract and merge 'default' + formatName values.
Definition fileFormats.C:80
Namespace for OpenFOAM.
dictionary dict