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/ExternalFile_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_EXTERNALFILE_IMPL_HPP
7 #define MODEL_EXTERNALFILE_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ResourceObject_Impl.hpp"
11
12 namespace openstudio {
13
14 namespace model {
15
16 class ExternalFile;
17 class ScheduleFile;
18 class PythonPluginInstance;
19 class ChillerElectricASHRAE205;
20
21 namespace detail {
22
23 /** ExternalFile_Impl is a ResourceObject_Impl that is the implementation class for ExternalFile.*/
24 class MODEL_API ExternalFile_Impl : public ResourceObject_Impl
25 {
26 public:
27 /** @name Constructors and Destructors */
28 //@{
29
30 ExternalFile_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
31
32 ExternalFile_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
33
34 ExternalFile_Impl(const ExternalFile_Impl& other, Model_Impl* model, bool keepHandle);
35
36 43 virtual ~ExternalFile_Impl() override = default;
37
38 //@}
39 /** @name Virtual Methods */
40 //@{
41
42 virtual const std::vector<std::string>& outputVariableNames() const override;
43
44 virtual IddObjectType iddObjectType() const override;
45
46 virtual ModelObject clone(Model model) const override;
47
48 virtual std::vector<IdfObject> remove() override;
49
50 //@}
51 /** @name Getters */
52 //@{
53
54 std::string fileName() const;
55
56 path filePath() const;
57
58 //boost::optional<std::string> columnSeparator() const;
59
60 //char columnSeparatorChar() const;
61
62 //bool isColumnSeparatorDefaulted() const;
63
64 //@}
65 /** @name Setters */
66 //@{
67
68 //bool setColumnSeparator(const std::string& columnSeparator);
69
70 //void resetColumnSeparator();
71
72 //@}
73 /** @name Other */
74 //@{
75 //bool isValid();
76
77 std::vector<ScheduleFile> scheduleFiles() const;
78
79 std::vector<PythonPluginInstance> pythonPluginInstances() const;
80
81 std::vector<ChillerElectricASHRAE205> chillerElectricASHRAE205s() const;
82
83 //@}
84 protected:
85 bool setFileName(const std::string& fileName);
86 friend class openstudio::model::ExternalFile;
87
88 private:
89 − REGISTER_LOGGER("openstudio.model.ExternalFile");
90 };
91
92 } // namespace detail
93
94 } // namespace model
95 } // namespace openstudio
96
97 #endif // MODEL_SCHEDULEFILE_IMPL_HPP
98