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_Impl.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_IMPL_HPP
7 #define MODEL_PYTHONPLUGINVARIABLE_IMPL_HPP
8
9 #include <model/ModelAPI.hpp>
10 #include "ModelObject_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class PythonPluginTrendVariable;
16 class PythonPluginOutputVariable;
17
18 namespace detail {
19
20 /** PythonPluginVariable_Impl is a ModelObject_Impl that is the implementation class for PythonPluginVariable.*/
21 class MODEL_API PythonPluginVariable_Impl : public ModelObject_Impl
22 {
23 public:
24 /** @name Constructors and Destructors */
25 //@{
26
27 PythonPluginVariable_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
28
29 PythonPluginVariable_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
30
31 PythonPluginVariable_Impl(const PythonPluginVariable_Impl& other, Model_Impl* model, bool keepHandle);
32
33 29 virtual ~PythonPluginVariable_Impl() override = default;
34
35 /** Removes all PythonPluginTrendVariable and PythonPluginOutputVariable attached to it */
36 virtual std::vector<IdfObject> remove() override;
37
38 /** Also clones all PythonPluginTrendVariable and PythonPluginOutputVariable attached to it */
39 virtual ModelObject clone(Model model) const override;
40
41 //@}
42 /** @name Virtual Methods */
43 //@{
44
45 virtual const std::vector<std::string>& outputVariableNames() const override;
46
47 virtual IddObjectType iddObjectType() const override;
48
49 //@}
50 /** @name Getters */
51 //@{
52
53 //@}
54 /** @name Setters */
55 //@{
56
57 //@}
58 /** @name Other */
59 //@{
60
61 std::vector<PythonPluginTrendVariable> pythonPluginTrendVariables() const;
62 std::vector<PythonPluginOutputVariable> pythonPluginOutputVariables() const;
63
64 //@}
65 protected:
66 private:
67 REGISTER_LOGGER("openstudio.model.PythonPluginVariable");
68 };
69
70 } // namespace detail
71
72 } // namespace model
73 } // namespace openstudio
74
75 #endif // MODEL_PYTHONPLUGINVARIABLE_IMPL_HPP
76