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/OutputDiagnostics_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_OUTPUTDIAGNOSTICS_IMPL_HPP
7 #define MODEL_OUTPUTDIAGNOSTICS_IMPL_HPP
8
9 #include <model/ModelAPI.hpp>
10 #include "ModelObject_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 namespace detail {
16
17 /** OutputDiagnostics_Impl is a ModelObject_Impl that is the implementation class for OutputDiagnostics.*/
18 class MODEL_API OutputDiagnostics_Impl : public ModelObject_Impl
19 {
20 public:
21 /** @name Constructors and Destructors */
22 //@{
23
24 OutputDiagnostics_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
25
26 OutputDiagnostics_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
27
28 OutputDiagnostics_Impl(const OutputDiagnostics_Impl& other, Model_Impl* model, bool keepHandle);
29
30 29 virtual ~OutputDiagnostics_Impl() override = default;
31
32 //@}
33 /** @name Virtual Methods */
34 //@{
35
36 virtual const std::vector<std::string>& outputVariableNames() const override;
37
38 virtual IddObjectType iddObjectType() const override;
39
40 //@}
41 /** @name Getters */
42 //@{
43
44 std::vector<std::string> keys() const;
45
46 //@}
47 /** @name Setters */
48 //@{
49
50 // Return false if key isn't valid. If is already present, not added twice (ensures unicity) and logs an info in that case too
51 bool addKey(const std::string& key);
52
53 // Calls clearKeys, then for each k, addKey(k)
54 bool setKeys(const std::vector<std::string>& keys);
55
56 // Just a convenience function to add 'DisplayExtraWarnings' as a key since it's so common
57 bool enableDisplayExtraWarnings();
58
59 // Clears out every key
60 void clearKeys();
61
62 //@}
63 /** @name Other */
64 //@{
65
66 //@}
67 protected:
68 private:
69 − REGISTER_LOGGER("openstudio.model.OutputDiagnostics");
70 };
71
72 } // namespace detail
73
74 } // namespace model
75 } // namespace openstudio
76
77 #endif // MODEL_OUTPUTDIAGNOSTICS_IMPL_HPP
78