GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 1 / 0 / 1
Functions: 100.0% 1 / 0 / 1
Branches: -% 0 / 0 / 0

src/model/PythonPluginVariable.hpp
Line Branch Exec Source
1 /***********************************************************************************************************************
2 * OpenStudio(R), Copyright (c) Alliance for Energy Innovation, LLC.
3 * See also https://openstudio.net/license
4 ***********************************************************************************************************************/
5
6 #ifndef MODEL_PYTHONPLUGINVARIABLE_HPP
7 #define MODEL_PYTHONPLUGINVARIABLE_HPP
8
9 #include <model/ModelAPI.hpp>
10 #include "ModelObject.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class PythonPluginTrendVariable;
16 class PythonPluginOutputVariable;
17
18 namespace detail {
19
20 class PythonPluginVariable_Impl;
21
22 } // namespace detail
23
24 /** PythonPluginVariable is a ModelObject that wraps the OpenStudio IDD object 'OS:PythonPlugin:Variable'. */
25 class MODEL_API PythonPluginVariable : public ModelObject
26 {
27 public:
28 /** @name Constructors and Destructors */
29 //@{
30
31 explicit PythonPluginVariable(const Model& model);
32
33 119 virtual ~PythonPluginVariable() override = default;
34
35 //@}
36
37 static IddObjectType iddObjectType();
38
39 /** @name Getters */
40 //@{
41
42 //@}
43 /** @name Setters */
44 //@{
45
46 //@}
47 /** @name Other */
48 //@{
49
50 std::vector<PythonPluginTrendVariable> pythonPluginTrendVariables() const;
51 std::vector<PythonPluginOutputVariable> pythonPluginOutputVariables() const;
52
53 //@}
54 protected:
55 /// @cond
56 using ImplType = detail::PythonPluginVariable_Impl;
57
58 explicit PythonPluginVariable(std::shared_ptr<detail::PythonPluginVariable_Impl> impl);
59
60 friend class detail::PythonPluginVariable_Impl;
61 friend class Model;
62 friend class IdfObject;
63 friend class openstudio::detail::IdfObject_Impl;
64 /// @endcond
65 private:
66 REGISTER_LOGGER("openstudio.model.PythonPluginVariable");
67 };
68
69 /** \relates PythonPluginVariable*/
70 using OptionalPythonPluginVariable = boost::optional<PythonPluginVariable>;
71
72 /** \relates PythonPluginVariable*/
73 using PythonPluginVariableVector = std::vector<PythonPluginVariable>;
74
75 } // namespace model
76 } // namespace openstudio
77
78 #endif // MODEL_PYTHONPLUGINVARIABLE_HPP
79