Documentation for OpenFLUID 2.2.0
FluidXDescriptor.hpp
Go to the documentation of this file.
1 /*
2 
3  This file is part of OpenFLUID software
4  Copyright(c) 2007, INRA - Montpellier SupAgro
5 
6 
7  == GNU General Public License Usage ==
8 
9  OpenFLUID is free software: you can redistribute it and/or modify
10  it under the terms of the GNU General Public License as published by
11  the Free Software Foundation, either version 3 of the License, or
12  (at your option) any later version.
13 
14  OpenFLUID is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU General Public License for more details.
18 
19  You should have received a copy of the GNU General Public License
20  along with OpenFLUID. If not, see <http://www.gnu.org/licenses/>.
21 
22 
23  == Other Usage ==
24 
25  Other Usage means a use of OpenFLUID that is inconsistent with the GPL
26  license, and requires a written agreement between You and INRA.
27  Licensees for Other Usage of OpenFLUID may use this file in accordance
28  with the terms contained in the written agreement between You and INRA.
29 
30 */
31 
32 
33 /**
34  @file FluidXDescriptor.hpp
35 
36  @author Jean-Christophe Fabre <jean-christophe.fabre@inra.fr>
37  @author Aline LIBRES <aline.libres@gmail.com>
38 */
39 
40 
41 #ifndef __OPENFLUID_FLUIDX_FLUIDXDESCRIPTOR_HPP__
42 #define __OPENFLUID_FLUIDX_FLUIDXDESCRIPTOR_HPP__
43 
44 
45 #include <openfluid/dllexport.hpp>
54 
55 
56 namespace openfluid { namespace fluidx {
57 
58 
60 {
61  private:
62 
63  friend class FluidXReaderImplementation;
64  friend class FluidXWriterImplementation;
65 
67 
69 
71 
72  openfluid::fluidx::DatastoreDescriptor m_DatastoreDescriptor;
73 
74  openfluid::fluidx::MonitoringDescriptor m_MonitoringDescriptor;
75 
76 
77  public:
78 
79  // NOTE : apply the rule of zero to ensure corect usage of copy/move/assign
80 
82  {
83  return m_ModelDescriptor;
84  }
85 
87  {
88  return m_ModelDescriptor;
89  }
90 
92  {
93  return m_DomainDescriptor;
94  }
95 
97  {
98  return m_DomainDescriptor;
99  }
100 
102  {
103  return m_RunDescriptor;
104  }
105 
107  {
108  return m_RunDescriptor;
109  }
110 
112  {
113  return m_DatastoreDescriptor;
114  }
115 
117  {
118  return m_DatastoreDescriptor;
119  }
120 
122  {
123  return m_MonitoringDescriptor;
124  }
125 
127  {
128  return m_MonitoringDescriptor;
129  }
130 
131  void reset()
132  {
133  m_ModelDescriptor = openfluid::fluidx::CoupledModelDescriptor();
134  m_DomainDescriptor = openfluid::fluidx::SpatialDomainDescriptor();
136  m_DatastoreDescriptor = openfluid::fluidx::DatastoreDescriptor();
137  m_MonitoringDescriptor = openfluid::fluidx::MonitoringDescriptor();
138  }
139 };
140 
141 
142 } } // namespaces
143 
144 
145 #endif /* __OPENFLUID_FLUIDX_FLUIDXDESCRIPTOR_HPP__ */
Definition: CoupledModelDescriptor.hpp:53
Definition: DatastoreDescriptor.hpp:55
Definition: FluidXDescriptor.hpp:60
const openfluid::fluidx::RunConfigurationDescriptor & runConfiguration() const
Definition: FluidXDescriptor.hpp:106
const openfluid::fluidx::MonitoringDescriptor & monitoring() const
Definition: FluidXDescriptor.hpp:126
openfluid::fluidx::SpatialDomainDescriptor & spatialDomain()
Definition: FluidXDescriptor.hpp:91
openfluid::fluidx::MonitoringDescriptor & monitoring()
Definition: FluidXDescriptor.hpp:121
void reset()
Definition: FluidXDescriptor.hpp:131
openfluid::fluidx::CoupledModelDescriptor & model()
Definition: FluidXDescriptor.hpp:81
openfluid::fluidx::RunConfigurationDescriptor & runConfiguration()
Definition: FluidXDescriptor.hpp:101
const openfluid::fluidx::CoupledModelDescriptor & model() const
Definition: FluidXDescriptor.hpp:86
openfluid::fluidx::DatastoreDescriptor & datastore()
Definition: FluidXDescriptor.hpp:111
const openfluid::fluidx::DatastoreDescriptor & datastore() const
Definition: FluidXDescriptor.hpp:116
const openfluid::fluidx::SpatialDomainDescriptor & spatialDomain() const
Definition: FluidXDescriptor.hpp:96
Definition: MonitoringDescriptor.hpp:53
Definition: RunConfigurationDescriptor.hpp:53
Definition: SpatialDomainDescriptor.hpp:63
#define OPENFLUID_API
Definition: dllexport.hpp:86
Definition: ApplicationException.hpp:47