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/StraightComponent_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_STRAIGHTCOMPONENT_IMPL_HPP
7 #define MODEL_STRAIGHTCOMPONENT_IMPL_HPP
8
9 #include "HVACComponent_Impl.hpp"
10
11 namespace openstudio {
12 namespace model {
13
14 class AirLoopHVAC;
15 class AirflowNetworkEquivalentDuct;
16
17 namespace detail {
18
19 class MODEL_API StraightComponent_Impl : public HVACComponent_Impl
20 {
21 public:
22 /** @name Constructors and Destructors */
23 //@{
24
25 StraightComponent_Impl(IddObjectType type, Model_Impl* model);
26
27 StraightComponent_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
28
29 StraightComponent_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
30
31 StraightComponent_Impl(const StraightComponent_Impl& other, Model_Impl* model, bool keepHandles);
32
33 27301 virtual ~StraightComponent_Impl() override = default;
34
35 //@}
36 /** @name Virtual Methods */
37 //@{
38
39 virtual ModelObject clone(Model model) const override;
40
41 virtual boost::optional<ParentObject> parent() const override;
42
43 virtual std::vector<ModelObject> children() const override;
44
45 virtual std::vector<HVACComponent> edges(const boost::optional<HVACComponent>& prev) override;
46
47 //@}
48 /** @name Getters */
49 //@{
50
51 virtual unsigned inletPort() const = 0;
52
53 virtual unsigned outletPort() const = 0;
54
55 virtual boost::optional<ModelObject> inletModelObject() const;
56
57 virtual boost::optional<ModelObject> outletModelObject() const;
58
59 virtual boost::optional<AirLoopHVAC> airLoopHVAC() const override;
60
61 //@}
62 /** @name Setters */
63 //@{
64
65 //@}
66 /** @name Other */
67 //@{
68 virtual bool addToNode(Node& node) override;
69
70 virtual std::vector<openstudio::IdfObject> remove() override;
71
72 virtual bool removeFromLoop();
73
74 virtual void disconnect() override;
75
76 //@}
77 private:
78 REGISTER_LOGGER("openstudio.model.StraightComponent");
79 };
80
81 } // namespace detail
82
83 } // namespace model
84 } // namespace openstudio
85
86 #endif // MODEL_STRAIGHTCOMPONENT_IMPL_HPP
87