ModelItemInstance.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 /**
35  @file ModelItemInstance.hpp
36 
37  @author Jean-Christophe FABRE <jean-christophe.fabre@supagro.inra.fr>
38  */
39 
40 
41 #ifndef __OPENFLUID_MACHINE_MODELITEMINSTANCE_HPP__
42 #define __OPENFLUID_MACHINE_MODELITEMINSTANCE_HPP__
43 
44 
45 #include <string>
46 #include <memory>
47 
48 #include <openfluid/dllexport.hpp>
49 #include <openfluid/core/TypeDefs.hpp>
55 
56 
57 namespace openfluid { namespace machine {
58 
59 
61 {
62  public:
63 
66  unsigned int VariableSize;
68 
70 };
71 
72 
73 // =====================================================================
74 // =====================================================================
75 
76 
78 {
79  public:
80 
81  // Declared as a classic pointer because of DLL cross-boundaries hell on Windows systems
82  // TODO should be replaced by a factory for memory management across DLLs
84 
85  std::unique_ptr<GeneratorExtraInfo> GeneratorInfo;
86 
87  bool Ghost;
88 
89 
91 
92 };
93 
94 
95 // =====================================================================
96 // =====================================================================
97 
98 
100 {
101  public:
102 
104 
105  std::unique_ptr<openfluid::ware::PluggableSimulator> Body;
106 
107  unsigned int OriginalPosition;
108 
109 
111 };
112 
113 
114 } } //namespaces
115 
116 
117 #endif /* __OPENFLUID_MACHINE_MODELITEMINSTANCE_HPP__ */
118 
openfluid::ware::SimulatorSignature * Signature
Definition: ModelItemInstance.hpp:83
std::unique_ptr< openfluid::ware::PluggableSimulator > Body
Definition: ModelItemInstance.hpp:105
std::string UnitsClass_t
Definition: TypeDefs.hpp:71
std::string VariableName_t
Definition: TypeDefs.hpp:86
std::unique_ptr< GeneratorExtraInfo > GeneratorInfo
Definition: ModelItemInstance.hpp:85
openfluid::fluidx::GeneratorDescriptor::GeneratorMethod GeneratorMethod
Definition: ModelItemInstance.hpp:67
Definition: ModelItemInstance.hpp:60
GeneratorMethod
Definition: GeneratorDescriptor.hpp:53
bool Ghost
Definition: ModelItemInstance.hpp:87
openfluid::core::UnitsClass_t UnitsClass
Definition: ModelItemInstance.hpp:65
Definition: ModelItemInstance.hpp:77
Definition: WareSignatureInstance.hpp:51
Definition: ApplicationException.hpp:47
unsigned int OriginalPosition
Definition: ModelItemInstance.hpp:107
Definition: ModelItemInstance.hpp:99
Definition: SimulatorSignature.hpp:307
#define OPENFLUID_API
Definition: dllexport.hpp:87
openfluid::ware::WareParams_t Params
Definition: ModelItemInstance.hpp:103
unsigned int VariableSize
Definition: ModelItemInstance.hpp:66
openfluid::core::VariableName_t VariableName
Definition: ModelItemInstance.hpp:64
std::map< WareParamKey_t, WareParamValue_t > WareParams_t
Definition: TypeDefs.hpp:130