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/ProgramControl_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_PROGRAMCONTROL_IMPL_HPP
7 #define MODEL_PROGRAMCONTROL_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ModelObject_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 namespace detail {
16
17 /** ProgramControl_Impl is a ModelObject_Impl that is the implementation class for ProgramControl.*/
18 class MODEL_API ProgramControl_Impl : public ModelObject_Impl
19 {
20
21 // TODO: Add relationships for objects related to this one, but not pointed to by the underlying data.
22 // Such relationships can be generated by the GenerateRelationships.rb script.
23 public:
24 /** @name Constructors and Destructors */
25 //@{
26
27 ProgramControl_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
28
29 ProgramControl_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
30
31 ProgramControl_Impl(const ProgramControl_Impl& other, Model_Impl* model, bool keepHandle);
32
33 73 virtual ~ProgramControl_Impl() override = default;
34
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 boost::optional<int> numberofThreadsAllowed() const;
49
50 //@}
51 /** @name Setters */
52 //@{
53
54 bool setNumberofThreadsAllowed(boost::optional<int> numberofThreadsAllowed);
55
56 void resetNumberofThreadsAllowed();
57
58 //@}
59 /** @name Other */
60 //@{
61
62 //@}
63 protected:
64 private:
65 REGISTER_LOGGER("openstudio.model.ProgramControl");
66 };
67
68 } // namespace detail
69
70 } // namespace model
71 } // namespace openstudio
72
73 #endif // MODEL_PROGRAMCONTROL_IMPL_HPP
74