cellIOGraph.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | cfMesh: A library for mesh generation
4  \\ / O peration |
5  \\ / A nd | Author: Franjo Juretic (franjo.juretic@c-fields.com)
6  \\/ M anipulation | Copyright (C) Creative Fields, Ltd.
7 -------------------------------------------------------------------------------
8 License
9  This file is part of cfMesh.
10 
11  cfMesh is free software; you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by the
13  Free Software Foundation; either version 3 of the License, or (at your
14  option) any later version.
15 
16  cfMesh 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 cfMesh. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  cellIOGraph
26 
27 Description
28  A graph of cells which support automated output
29 
30 SourceFiles
31  cellIOGraph.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef cellIOGraph_H
36 #define cellIOGraph_H
37 
38 #include "VRWGraph.H"
39 #include "regIOobject.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 
46 /*---------------------------------------------------------------------------*\
47  Class cellIOGraph Declaration
48 \*---------------------------------------------------------------------------*/
49 
50 class cellIOGraph
51 :
52  public regIOobject,
53  public VRWGraph
54 {
55 
56 public:
57 
58  //- Runtime type information
59  TypeName("cellIOGraph");
60 
61  // Constructors
62 
63  //- Construct from IOobject
64  cellIOGraph(const IOobject&);
65 
66  //- Construct from IOobject and size of cellIOGraph
67  cellIOGraph(const IOobject&, const label);
68 
69  //- Construct from IOobject and a VRWGraph
70  cellIOGraph(const IOobject&, const VRWGraph&);
71 
72 
73  // Member functions
74 
75  bool writeData(Ostream&) const;
76 
77 
78  // Member operators
79 
80  void operator=(const cellIOGraph&);
81  void operator=(const VRWGraph&);
82 };
83 
84 
85 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
86 
87 } // End namespace Foam
88 
89 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
90 
91 #endif
92 
93 // ************************************************************************* //
regIOobject.H
Foam::IOobject
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Definition: IOobject.H:91
Foam::cellIOGraph
Definition: cellIOGraph.H:49
VRWGraph.H
Foam::cellIOGraph::operator=
void operator=(const cellIOGraph &)
Definition: cellIOGraph.C:64
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:59
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::regIOobject
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
Definition: regIOobject.H:60
Foam::cellIOGraph::cellIOGraph
cellIOGraph(const IOobject &)
Construct from IOobject.
Definition: cellIOGraph.C:38
Foam::cellIOGraph::writeData
bool writeData(Ostream &) const
Pure virtual writaData function.
Definition: cellIOGraph.C:74
Foam::cellIOGraph::TypeName
TypeName("cellIOGraph")
Runtime type information.
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:53
Foam::VRWGraph
Definition: VRWGraph.H:101