GCC Code Coverage Report


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

src/model/EnergyManagementSystemConstructionIndexVariable_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_ENERGYMANAGEMENTSYSTEMCONSTRUCTIONINDEXVARIABLE_IMPL_HPP
7 #define MODEL_ENERGYMANAGEMENTSYSTEMCONSTRUCTIONINDEXVARIABLE_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ModelObject_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 // TODO: Check the following class names against object getters and setters.
16 class Construction;
17
18 namespace detail {
19
20 /** EnergyManagementSystemConstructionIndexVariable_Impl is a ModelObject_Impl that is the implementation class for EnergyManagementSystemConstructionIndexVariable.*/
21 class MODEL_API EnergyManagementSystemConstructionIndexVariable_Impl : public ModelObject_Impl
22 {
23 public:
24 /** @name Constructors and Destructors */
25 //@{
26
27 EnergyManagementSystemConstructionIndexVariable_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
28
29 EnergyManagementSystemConstructionIndexVariable_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
30
31 EnergyManagementSystemConstructionIndexVariable_Impl(const EnergyManagementSystemConstructionIndexVariable_Impl& other, Model_Impl* model,
32 bool keepHandle);
33
34 11 virtual ~EnergyManagementSystemConstructionIndexVariable_Impl() override = default;
35
36 //@}
37 /** @name Virtual Methods */
38 //@{
39
40 virtual const std::vector<std::string>& outputVariableNames() const override;
41
42 virtual IddObjectType iddObjectType() const override;
43
44 //@}
45 /** @name Getters */
46 //@{
47
48 ModelObject constructionObject() const;
49
50 //@}
51 /** @name Setters */
52 //@{
53
54 bool setConstructionObject(const ModelObject& construction);
55
56 //@}
57 /** @name Other */
58 //@{
59
60 //@}
61 protected:
62 private:
63 − REGISTER_LOGGER("openstudio.model.EnergyManagementSystemConstructionIndexVariable");
64
65 // TODO: Check the return types of these methods.
66 // Optional getters for use by methods like children() so can remove() if the constructor fails.
67 // There are other ways for the public versions of these getters to fail--perhaps all required
68 // objects should be returned as boost::optionals
69 boost::optional<ModelObject> optionalConstructionObject() const;
70 };
71
72 } // namespace detail
73
74 } // namespace model
75 } // namespace openstudio
76
77 #endif // MODEL_ENERGYMANAGEMENTSYSTEMCONSTRUCTIONINDEXVARIABLE_IMPL_HPP
78