All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
baseIOdictionary.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2019 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 \*---------------------------------------------------------------------------*/
25 
26 #include "baseIOdictionary.H"
27 #include "objectRegistry.H"
28 #include "Pstream.H"
29 #include "Time.H"
30 
31 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
32 
33 namespace Foam
34 {
35  defineTypeNameAndDebug(baseIOdictionary, 0);
36 
37  bool baseIOdictionary::writeDictionaries
38  (
39  debug::infoSwitch("writeDictionaries", 0)
40  );
41 }
42 
43 
44 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
45 
47 :
48  regIOobject(io)
49 {
51 }
52 
53 
55 (
56  const IOobject& io,
57  const dictionary& dict
58 )
59 :
60  regIOobject(io)
61 {
63 }
64 
65 
67 (
68  const IOobject& io,
69  Istream& is
70 )
71 :
72  regIOobject(io)
73 {
75 }
76 
77 
79 :
80  regIOobject(dict),
81  dictionary(dict)
82 {}
83 
84 
86 :
87  regIOobject(move(dict)),
88  dictionary(move(dict))
89 {}
90 
91 
92 // * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * * //
93 
95 {}
96 
97 
98 // * * * * * * * * * * * * * * * Members Functions * * * * * * * * * * * * * //
99 
101 {
102  return regIOobject::name();
103 }
104 
105 
106 // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
107 
109 {
111 }
112 
113 
115 {
116  dictionary::operator=(move(rhs));
117 }
118 
119 
120 // ************************************************************************* //
void operator=(const baseIOdictionary &)
Assignment of other baseIOdictionary&#39;s entries to this.
baseIOdictionary(const IOobject &)
Construct given an IOobject.
const word & name() const
Return name.
Definition: IOobject.H:303
baseIOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO function...
void operator=(const dictionary &)
Definition: dictionary.C:1418
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:158
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Definition: Istream.H:57
regIOobject(const IOobject &, const bool isTime=false)
Construct from IOobject. Optional flag for if IOobject is the.
Definition: regIOobject.C:42
int infoSwitch(const char *name, const int defaultValue=0)
Lookup info switch or add default value.
Definition: debug.C:187
const fileName & name() const
Return the dictionary name.
Definition: dictionary.H:111
virtual ~baseIOdictionary()
Destructor.
A class for handling words, derived from string.
Definition: word.H:59
const word & name() const
Name function is needed to disambiguate those inherited.
defineTypeNameAndDebug(combustionModel, 0)
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
Definition: regIOobject.H:55
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Definition: IOobject.H:92
fileName objectPath() const
Return complete path + object name.
Definition: IOobject.H:419
Namespace for OpenFOAM.