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/EnergyManagementSystemProgramCallingManager_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_ENERGYMANAGEMENTSYSTEMPROGRAMCALLINGMANAGER_IMPL_HPP
7 #define MODEL_ENERGYMANAGEMENTSYSTEMPROGRAMCALLINGMANAGER_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ModelObject_Impl.hpp"
11 #include "EnergyManagementSystemProgram_Impl.hpp"
12
13 namespace openstudio {
14 namespace model {
15 // Forward declaration
16 class EnergyManagementSystemProgram;
17
18 namespace detail {
19
20 /** EnergyManagementSystemProgramCallingManager_Impl is a ModelObject_Impl that is the implementation class for EnergyManagementSystemProgramCallingManager.*/
21 class MODEL_API EnergyManagementSystemProgramCallingManager_Impl : public ModelObject_Impl
22 {
23 public:
24 /** @name Constructors and Destructors */
25 //@{
26
27 EnergyManagementSystemProgramCallingManager_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
28
29 EnergyManagementSystemProgramCallingManager_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
30
31 EnergyManagementSystemProgramCallingManager_Impl(const EnergyManagementSystemProgramCallingManager_Impl& other, Model_Impl* model,
32 bool keepHandle);
33
34 88 virtual ~EnergyManagementSystemProgramCallingManager_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 std::string callingPoint() const;
49
50 std::vector<EnergyManagementSystemProgram> programs() const;
51
52 boost::optional<EnergyManagementSystemProgram> getProgram(unsigned index) const;
53
54 //@}
55 /** @name Setters */
56 //@{
57
58 bool setCallingPoint(const std::string& callingPoint);
59
60 bool eraseProgram(unsigned index);
61
62 void erasePrograms();
63
64 bool addProgram(const EnergyManagementSystemProgram& program);
65
66 bool setProgram(const EnergyManagementSystemProgram& program, unsigned index);
67
68 bool setPrograms(const std::vector<EnergyManagementSystemProgram>& programs);
69
70 //@}
71 /** @name Other */
72 //@{
73
74 //@}
75 protected:
76 private:
77 REGISTER_LOGGER("openstudio.model.EnergyManagementSystemProgramCallingManager");
78 };
79
80 } // namespace detail
81
82 } // namespace model
83 } // namespace openstudio
84
85 #endif // MODEL_ENERGYMANAGEMENTSYSTEMPROGRAMCALLINGMANAGER_IMPL_HPP
86