IOmapDistributePolyMesh.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) 2015 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::IOmapDistributePolyMesh
28 
29 Description
30  IOmapDistributePolyMesh is derived from mapDistributePolyMesh and
31  IOobject to give the mapDistributePolyMesh
32  automatic IO functionality via the objectRegistry.
33 
34 SourceFiles
35  IOmapDistributePolyMesh.C
36 
37 \*---------------------------------------------------------------------------*/
38 
39 #ifndef IOmapDistributePolyMesh_H
40 #define IOmapDistributePolyMesh_H
41 
42 #include "mapDistributePolyMesh.H"
43 #include "regIOobject.H"
44 
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 
47 namespace Foam
48 {
49 
50 /*---------------------------------------------------------------------------*\
51  Class IOmapDistributePolyMesh Declaration
52 \*---------------------------------------------------------------------------*/
53 
55 :
56  public regIOobject,
58 {
59 
60 public:
61 
62  //- Runtime type information
63  TypeName("mapDistributePolyMesh");
64 
65  // Constructors
66 
67  //- Construct given an IOobject
69 
70  //- Construct given an IOobject and mapDistributePolyMesh
72  (
73  const IOobject& io,
74  const mapDistributePolyMesh& map
75  );
76 
77  //- Construct given an IOobject and mapDistributePolyMesh
79  (
80  const IOobject& io,
82  );
83 
84 
85  //- Destructor
86  virtual ~IOmapDistributePolyMesh() = default;
87 
88 
89  // Member Functions
90 
91  //- The readData method for regIOobject read operation
92  virtual bool readData(Istream& is);
93 
94  //- The writeData method for regIOobject write operation
95  virtual bool writeData(Ostream& os) const;
96 
97 };
98 
99 
100 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
101 
102 } // End namespace Foam
103 
104 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
105 
106 #endif
107 
108 // ************************************************************************* //
regIOobject.H
Foam::IOobject
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Definition: IOobject.H:169
Foam::IOmapDistributePolyMesh::TypeName
TypeName("mapDistributePolyMesh")
Runtime type information.
Foam::IOmapDistributePolyMesh::IOmapDistributePolyMesh
IOmapDistributePolyMesh(const IOobject &io)
Construct given an IOobject.
Definition: IOmapDistributePolyMesh.C:40
Foam::IOmapDistributePolyMesh::readData
virtual bool readData(Istream &is)
The readData method for regIOobject read operation.
Definition: IOmapDistributePolyMesh.C:122
mapDistributePolyMesh.H
Foam::IOmapDistributePolyMesh::~IOmapDistributePolyMesh
virtual ~IOmapDistributePolyMesh()=default
Destructor.
Foam::Istream
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Definition: Istream.H:61
os
OBJstream os(runTime.globalPath()/outputName)
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::regIOobject
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
Definition: regIOobject.H:73
Foam::IOmapDistributePolyMesh
IOmapDistributePolyMesh is derived from mapDistributePolyMesh and IOobject to give the mapDistributeP...
Definition: IOmapDistributePolyMesh.H:53
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:56
Foam::mapDistributePolyMesh
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Definition: mapDistributePolyMesh.H:66
Foam::IOmapDistributePolyMesh::writeData
virtual bool writeData(Ostream &os) const
The writeData method for regIOobject write operation.
Definition: IOmapDistributePolyMesh.C:128