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/PythonPluginInstance_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_PYTHONPLUGININSTANCE_IMPL_HPP
7 #define MODEL_PYTHONPLUGININSTANCE_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ResourceObject_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class ExternalFile;
16
17 namespace detail {
18
19 /** PythonPluginInstance_Impl is a ResourceObject_Impl that is the implementation class for PythonPluginInstance.*/
20 class MODEL_API PythonPluginInstance_Impl : public ResourceObject_Impl
21 {
22 public:
23 /** @name Constructors and Destructors */
24 //@{
25
26 PythonPluginInstance_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
27
28 PythonPluginInstance_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
29
30 PythonPluginInstance_Impl(const PythonPluginInstance_Impl& other, Model_Impl* model, bool keepHandle);
31
32 18 virtual ~PythonPluginInstance_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 virtual std::vector<ResourceObject> resources() const override;
43
44 //@}
45 /** @name Getters */
46 //@{
47
48 ExternalFile externalFile() const;
49
50 bool runDuringWarmupDays() const;
51 bool isRunDuringWarmupDaysDefaulted() const;
52
53 std::string pluginClassName() const;
54
55 //@}
56 /** @name Setters */
57 //@{
58
59 bool setRunDuringWarmupDays(bool runDuringWarmupDays);
60 void resetRunDuringWarmupDays();
61
62 bool setPluginClassName(const std::string& pluginClassName);
63
64 //@}
65 /** @name Other */
66 //@{
67
68 bool findPluginClassNameInFile(const std::string& pluginClassName) const;
69
70 std::vector<std::string> validPluginClassNamesInFile() const;
71
72 //@}
73 protected:
74 private:
75 − REGISTER_LOGGER("openstudio.model.PythonPluginInstance");
76 };
77
78 } // namespace detail
79
80 } // namespace model
81 } // namespace openstudio
82
83 #endif // MODEL_PYTHONPLUGININSTANCE_IMPL_HPP
84