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/OutputTableMonthly_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_OUTPUTTABLEMONTHLY_IMPL_HPP
7 #define MODEL_OUTPUTTABLEMONTHLY_IMPL_HPP
8
9 #include <model/ModelAPI.hpp>
10 #include "ModelObject_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class MonthlyVariableGroup;
16
17 namespace detail {
18
19 /** OutputTableMonthly_Impl is a ModelObject_Impl that is the implementation class for OutputTableMonthly.*/
20 class MODEL_API OutputTableMonthly_Impl : public ModelObject_Impl
21 {
22 public:
23 /** @name Constructors and Destructors */
24 //@{
25
26 OutputTableMonthly_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
27
28 OutputTableMonthly_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
29
30 OutputTableMonthly_Impl(const OutputTableMonthly_Impl& other, Model_Impl* model, bool keepHandle);
31
32 186 virtual ~OutputTableMonthly_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 int digitsAfterDecimal() const;
47
48 //@}
49 /** @name Setters */
50 //@{
51
52 bool setDigitsAfterDecimal(int digitsAfterDecimal);
53
54 //@}
55 /** @name Other */
56 //@{
57
58 // Handle this object's extensible fields.
59 std::vector<MonthlyVariableGroup> monthlyVariableGroups() const;
60
61 unsigned int numberofMonthlyVariableGroups() const;
62
63 boost::optional<unsigned> monthlyVariableGroupIndex(const MonthlyVariableGroup& monthlyVariableGroup) const;
64 boost::optional<MonthlyVariableGroup> getMonthlyVariableGroup(unsigned groupIndex) const;
65
66 bool addMonthlyVariableGroup(const MonthlyVariableGroup& monthlyVariableGroup);
67 bool addMonthlyVariableGroups(const std::vector<MonthlyVariableGroup>& monthlyVariableGroups);
68 bool removeMonthlyVariableGroup(unsigned groupIndex);
69 void removeAllMonthlyVariableGroups();
70
71 static const std::vector<std::pair<std::string, std::vector<MonthlyVariableGroup>>>& standardReports();
72 static const std::vector<std::string>& validStandardReportNames();
73 static const std::vector<MonthlyVariableGroup>& getGroupsForStandardReport(const std::string& standardReportName);
74
75 //@}
76 protected:
77 private:
78 − REGISTER_LOGGER("openstudio.model.OutputTableMonthly");
79 };
80
81 } // namespace detail
82
83 } // namespace model
84 } // namespace openstudio
85
86 #endif // MODEL_OUTPUTTABLEMONTHLY_IMPL_HPP
87