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/EnergyManagementSystemSubroutine_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_ENERGYMANAGEMENTSYSTEMSUBROUTINE_IMPL_HPP
7 #define MODEL_ENERGYMANAGEMENTSYSTEMSUBROUTINE_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ModelObject_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class EnergyManagementSystemMeteredOutputVariable;
16
17 namespace detail {
18
19 /** EnergyManagementSystemSubroutine_Impl is a ModelObject_Impl that is the implementation class for EnergyManagementSystemSubroutine.*/
20 class MODEL_API EnergyManagementSystemSubroutine_Impl : public ModelObject_Impl
21 {
22 public:
23 /** @name Constructors and Destructors */
24 //@{
25
26 EnergyManagementSystemSubroutine_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
27
28 EnergyManagementSystemSubroutine_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
29
30 EnergyManagementSystemSubroutine_Impl(const EnergyManagementSystemSubroutine_Impl& other, Model_Impl* model, bool keepHandle);
31
32 18 virtual ~EnergyManagementSystemSubroutine_Impl() override = default;
33
34 //@}
35 /** @name Virtual Methods */
36 //@{
37
38 virtual const std::vector<std::string>& outputVariableNames() const override;
39
40 virtual IddObjectType iddObjectType() const override;
41
42 //@}
43 /** @name Getters */
44 //@{
45
46 std::string body() const;
47
48 std::vector<std::string> lines() const;
49
50 std::vector<ModelObject> referencedObjects() const;
51
52 std::vector<std::string> invalidReferencedObjects() const;
53
54 //@}
55 /** @name Setters */
56 //@{
57
58 bool setBody(const std::string& body);
59
60 bool resetBody();
61
62 bool addLine(const std::string& body);
63
64 bool setLines(const std::vector<std::string>& body);
65
66 //@}
67 /** @name Other */
68 //@{
69
70 std::vector<EnergyManagementSystemMeteredOutputVariable> energyManagementSystemMeteredOutputVariables() const;
71
72 //@}
73 protected:
74 private:
75 REGISTER_LOGGER("openstudio.model.EnergyManagementSystemSubroutine");
76 };
77
78 } // namespace detail
79
80 } // namespace model
81 } // namespace openstudio
82
83 #endif // MODEL_ENERGYMANAGEMENTSYSTEMSUBROUTINE_IMPL_HPP
84