IOmapDistributePolyMesh.H 3.18 KB
Newer Older
1
2
3
4
/*---------------------------------------------------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     |
OpenFOAM bot's avatar
OpenFOAM bot committed
5
    \\  /    A nd           | www.openfoam.com
6
     \\/     M anipulation  |
OpenFOAM bot's avatar
OpenFOAM bot committed
7
-------------------------------------------------------------------------------
OpenFOAM bot's avatar
OpenFOAM bot committed
8
    Copyright (C) 2015 OpenFOAM Foundation
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
-------------------------------------------------------------------------------
License
    This file is part of OpenFOAM.

    OpenFOAM is free software: you can redistribute it and/or modify it
    under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    for more details.

    You should have received a copy of the GNU General Public License
    along with OpenFOAM.  If not, see <http://www.gnu.org/licenses/>.

Class
27
    Foam::IOmapDistributePolyMesh
28
29

Description
30
31
32
33
34
35
    IOmapDistributePolyMesh is derived from mapDistributePolyMesh and
    IOobject to give the mapDistributePolyMesh
    automatic IO functionality via the objectRegistry.

SourceFiles
    IOmapDistributePolyMesh.C
36
37
38

\*---------------------------------------------------------------------------*/

39
40
#ifndef IOmapDistributePolyMesh_H
#define IOmapDistributePolyMesh_H
41

42
43
#include "mapDistributePolyMesh.H"
#include "regIOobject.H"
44
45
46
47
48
49
50

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

namespace Foam
{

/*---------------------------------------------------------------------------*\
51
                   Class IOmapDistributePolyMesh Declaration
52
53
\*---------------------------------------------------------------------------*/

54
class IOmapDistributePolyMesh
55
:
56
57
    public regIOobject,
    public mapDistributePolyMesh
58
59
60
61
{

public:

62
63
    //- Runtime type information
    TypeName("mapDistributePolyMesh");
64

65
    // Constructors
66

67
        //- Construct given an IOobject
68
        IOmapDistributePolyMesh(const IOobject& io);
69

70
        //- Construct given an IOobject and mapDistributePolyMesh
71
72
73
74
75
76
77
78
79
80
81
82
        IOmapDistributePolyMesh
        (
            const IOobject& io,
            const mapDistributePolyMesh& map
        );

        //- Construct given an IOobject and mapDistributePolyMesh
        IOmapDistributePolyMesh
        (
            const IOobject& io,
            mapDistributePolyMesh&& map
        );
83
84


85
    //- Destructor
86
    virtual ~IOmapDistributePolyMesh() = default;
87
88


89
    // Member Functions
90

91
92
        //- The readData method for regIOobject read operation
        virtual bool readData(Istream& is);
93

94
95
        //- The writeData method for regIOobject write operation
        virtual bool writeData(Ostream& os) const;
96
97
98

};

99

100
101
102
103
104
105
106
107
108
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

} // End namespace Foam

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

#endif

// ************************************************************************* //