lumpedPointIOMovement.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) 2016-2017 OpenCFD Ltd.
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::lumpedPointIOMovement
28 
29 Description
30  IO-registered version of lumpedPointMovement.
31 
32 SourceFiles
33  lumpedPointMovement.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef lumpedPointIOMovement_H
38 #define lumpedPointIOMovement_H
39 
40 #include "lumpedPointMovement.H"
41 #include "regIOobject.H"
42 #include "className.H"
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 
49 // Forward declarations
50 class lumpedPointIOMovement;
51 
52 Ostream& operator<<(Ostream& os, const lumpedPointIOMovement& obj);
53 
54 /*---------------------------------------------------------------------------*\
55  Class lumpedPointIOMovement Declaration
56 \*---------------------------------------------------------------------------*/
57 
59 :
60  public lumpedPointMovement,
61  public regIOobject
62 {
63  // Private Member Functions
64 
65  //- No copy construct
67 
68  //- No copy assignment
69  void operator=(const lumpedPointIOMovement&) = delete;
70 
71 public:
72 
73  //- Runtime type information
74  TypeName("lumpedPointMovement");
75 
76 
77  // Static Member Functions
78 
79  //- Lookup pointer to object in the object-registry,
80  // return nullptr if found.
82  (
83  const objectRegistry& obr
84  );
85 
86  //- Create a new object in the registry by reading system dictionary
88  (
89  const objectRegistry& obr,
90  label ownerId = -1
91  );
92 
93 
94  // Constructors
95 
96  //- Construct from IOobject, optionally with some owner information
97  explicit lumpedPointIOMovement
98  (
99  const IOobject& io,
100  label ownerId = -1
101  );
102 
103 
104  //- Destructor
105  ~lumpedPointIOMovement() = default;
106 
107 
108  // Member Functions
109 
110  //- readData member function used by regIOobject
111  bool readData(Istream& is);
112 
113  //- writeData member function required by regIOobject
114  bool writeData(Ostream& os) const;
115 
116 
117  // IOstream Operators
118 
119  friend Ostream& operator<<
120  (
121  Ostream& os,
122  const lumpedPointIOMovement& obj
123  );
124 };
125 
126 
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128 
129 } // End namespace Foam
130 
131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
132 
133 #endif
134 
135 // ************************************************************************* //
regIOobject.H
Foam::IOobject
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Definition: IOobject.H:104
Foam::lumpedPointIOMovement
IO-registered version of lumpedPointMovement.
Definition: lumpedPointIOMovement.H:57
Foam::lumpedPointIOMovement::~lumpedPointIOMovement
~lumpedPointIOMovement()=default
Destructor.
Foam::lumpedPointMovement::ownerId
label ownerId() const
An owner Id, if needed for bookkeeping purposes.
Definition: lumpedPointMovementI.H:58
Foam::objectRegistry
Registry of regIOobjects.
Definition: objectRegistry.H:60
Foam::label
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:62
Foam::Istream
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Definition: Istream.H:61
Foam::lumpedPointIOMovement::lookupInRegistry
static const lumpedPointIOMovement * lookupInRegistry(const objectRegistry &obr)
Lookup pointer to object in the object-registry,.
Definition: lumpedPointIOMovement.C:42
className.H
Macro definitions for declaring ClassName(), NamespaceName(), etc.
Foam::lumpedPointIOMovement::writeData
bool writeData(Ostream &os) const
writeData member function required by regIOobject
Definition: lumpedPointIOMovement.C:116
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::autoPtr
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: HashPtrTable.H:53
Foam::regIOobject
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
Definition: regIOobject.H:67
Foam::lumpedPointIOMovement::TypeName
TypeName("lumpedPointMovement")
Runtime type information.
Foam::lumpedPointIOMovement::readData
bool readData(Istream &is)
readData member function used by regIOobject
Definition: lumpedPointIOMovement.C:106
Foam::lumpedPointMovement
The movement driver that describes initial point locations, the segmentation for pressure integration...
Definition: lumpedPointMovement.H:260
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:56
lumpedPointMovement.H
Foam::operator<<
Ostream & operator<<(Ostream &, const boundaryPatch &)
Definition: boundaryPatch.C:102
Foam::lumpedPointIOMovement::New
static autoPtr< lumpedPointIOMovement > New(const objectRegistry &obr, label ownerId=-1)
Create a new object in the registry by reading system dictionary.
Definition: lumpedPointIOMovement.C:53