GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 60.0% 3 / 0 / 5
Functions: 60.0% 3 / 0 / 5
Branches: -% 0 / 0 / 0

src/model/OutputEnvironmentalImpactFactors.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_OUTPUTENVIRONMENTALIMPACTFACTORS_HPP
7 #define MODEL_OUTPUTENVIRONMENTALIMPACTFACTORS_HPP
8
9 #include <model/ModelAPI.hpp>
10 #include "ModelObject.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 namespace detail {
16
17 class OutputEnvironmentalImpactFactors_Impl;
18
19 } // namespace detail
20
21 /** OutputEnvironmentalImpactFactors is a ModelObject that wraps the OpenStudio IDD object 'OS:Output:EnvironmentalImpactFactors'. */
22 class MODEL_API OutputEnvironmentalImpactFactors : public ModelObject
23 {
24 public:
25 /** @name Constructors and Destructors */
26 //@{
27
28 explicit OutputEnvironmentalImpactFactors(const Model& model);
29
30 16 virtual ~OutputEnvironmentalImpactFactors() override = default;
31 // Default the copy and move operators because the virtual dtor is explicit
32 1 OutputEnvironmentalImpactFactors(const OutputEnvironmentalImpactFactors& other) = default;
33 1 OutputEnvironmentalImpactFactors(OutputEnvironmentalImpactFactors&& other) = default;
34 ✗ OutputEnvironmentalImpactFactors& operator=(const OutputEnvironmentalImpactFactors&) = default;
35 ✗ OutputEnvironmentalImpactFactors& operator=(OutputEnvironmentalImpactFactors&&) = default;
36
37 //@}
38
39 static IddObjectType iddObjectType();
40
41 static std::vector<std::string> reportingFrequencyValues();
42
43 /** @name Getters */
44 //@{
45
46 std::string reportingFrequency() const;
47
48 //@}
49 /** @name Setters */
50 //@{
51
52 bool setReportingFrequency(const std::string& reportingFrequency);
53
54 //@}
55 /** @name Other */
56 //@{
57
58 //@}
59 protected:
60 /// @cond
61 using ImplType = detail::OutputEnvironmentalImpactFactors_Impl;
62
63 explicit OutputEnvironmentalImpactFactors(std::shared_ptr<detail::OutputEnvironmentalImpactFactors_Impl> impl);
64
65 friend class detail::OutputEnvironmentalImpactFactors_Impl;
66 friend class Model;
67 friend class IdfObject;
68 friend class openstudio::detail::IdfObject_Impl;
69 /// @endcond
70 private:
71 REGISTER_LOGGER("openstudio.model.OutputEnvironmentalImpactFactors");
72 };
73
74 /** \relates OutputEnvironmentalImpactFactors*/
75 using OptionalOutputEnvironmentalImpactFactors = boost::optional<OutputEnvironmentalImpactFactors>;
76
77 /** \relates OutputEnvironmentalImpactFactors*/
78 using OutputEnvironmentalImpactFactorsVector = std::vector<OutputEnvironmentalImpactFactors>;
79
80 } // namespace model
81 } // namespace openstudio
82
83 #endif // MODEL_OUTPUTENVIRONMENTALIMPACTFACTORS_HPP
84