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/OutputControlTimestamp.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_OUTPUTCONTROLTIMESTAMP_HPP
7 #define MODEL_OUTPUTCONTROLTIMESTAMP_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 OutputControlTimestamp_Impl;
18
19 } // namespace detail
20
21 /** OutputControlTimestamp is a ModelObject that wraps the OpenStudio IDD object 'OS:OutputControl:Timestamp'. */
22 class MODEL_API OutputControlTimestamp : public ModelObject
23 {
24 public:
25 /** @name Constructors and Destructors */
26 //@{
27
28 23 virtual ~OutputControlTimestamp() override = default;
29 // Default the copy and move operators because the virtual dtor is explicit
30 6 OutputControlTimestamp(const OutputControlTimestamp& other) = default;
31 4 OutputControlTimestamp(OutputControlTimestamp&& other) = default;
32 ✗ OutputControlTimestamp& operator=(const OutputControlTimestamp&) = default;
33 ✗ OutputControlTimestamp& operator=(OutputControlTimestamp&&) = default;
34
35 //@}
36
37 static IddObjectType iddObjectType();
38
39 /** @name Getters */
40 //@{
41
42 bool iso8601Format() const;
43
44 bool timestampAtBeginningOfInterval() const;
45
46 //@}
47 /** @name Setters */
48 //@{
49
50 bool setISO8601Format(bool iso8601Format);
51
52 bool setTimestampAtBeginningOfInterval(bool timestampAtBeginningOfInterval);
53
54 //@}
55 /** @name Other */
56 //@{
57
58 //@}
59 protected:
60 /// @cond
61 using ImplType = detail::OutputControlTimestamp_Impl;
62
63 explicit OutputControlTimestamp(std::shared_ptr<detail::OutputControlTimestamp_Impl> impl);
64
65 friend class detail::OutputControlTimestamp_Impl;
66 friend class Model;
67 friend class IdfObject;
68 friend class openstudio::detail::IdfObject_Impl;
69 explicit OutputControlTimestamp(Model& model);
70
71 /// @endcond
72 private:
73 REGISTER_LOGGER("openstudio.model.OutputControlTimestamp");
74 };
75
76 /** \relates OutputControlTimestamp*/
77 using OptionalOutputControlTimestamp = boost::optional<OutputControlTimestamp>;
78
79 /** \relates OutputControlTimestamp*/
80 using OutputControlTimestampVector = std::vector<OutputControlTimestamp>;
81
82 } // namespace model
83 } // namespace openstudio
84
85 #endif // MODEL_OUTPUTCONTROLTIMESTAMP_HPP
86