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/utilities/filetypes/ForwardTranslatorOptions_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 UTILITIES_FILETYPES_FORWARDTRANSLATOROPTIONS_IMPL_HPP
7 #define UTILITIES_FILETYPES_FORWARDTRANSLATOROPTIONS_IMPL_HPP
8
9 #include "../UtilitiesAPI.hpp"
10
11 #include "../core/Logger.hpp"
12
13 namespace Json {
14 class Value;
15 }
16
17 namespace openstudio {
18 class ForwardTranslatorOptions;
19
20 namespace detail {
21
22 // TODO: is the nano onChange signal really needed for RunOptions?! If so, I need to implement one for ForwardTranslatorOptions too
23 class UTILITIES_API ForwardTranslatorOptions_Impl
24 {
25 public:
26 924 ForwardTranslatorOptions_Impl() = default;
27
28 void reset();
29
30 std::string string() const;
31 Json::Value toJSON() const;
32
33 bool keepRunControlSpecialDays() const;
34 bool isKeepRunControlSpecialDaysDefaulted() const;
35 void setKeepRunControlSpecialDays(bool keepRunControlSpecialDays);
36 void resetKeepRunControlSpecialDays();
37
38 bool iPTabularOutput() const;
39 bool isIPTabularOutputDefaulted() const;
40 void setIPTabularOutput(bool iPTabularOutput);
41 void resetIPTabularOutput();
42
43 bool excludeLCCObjects() const;
44 bool isExcludeLCCObjectsDefaulted() const;
45 void setExcludeLCCObjects(bool excludeLCCObjects);
46 void resetExcludeLCCObjects();
47
48 bool excludeSQliteOutputReport() const;
49 bool isExcludeSQliteOutputReportDefaulted() const;
50 void setExcludeSQliteOutputReport(bool excludeSQliteOutputReport);
51 void resetExcludeSQliteOutputReport();
52
53 bool excludeHTMLOutputReport() const;
54 bool isExcludeHTMLOutputReportDefaulted() const;
55 void setExcludeHTMLOutputReport(bool excludeHTMLOutputReport);
56 void resetExcludeHTMLOutputReport();
57
58 bool excludeVariableDictionary() const;
59 bool isExcludeVariableDictionaryDefaulted() const;
60 void setExcludeVariableDictionary(bool excludeVariableDictionary);
61 void resetExcludeVariableDictionary();
62
63 bool excludeSpaceTranslation() const;
64 bool isExcludeSpaceTranslationDefaulted() const;
65 void setExcludeSpaceTranslation(bool excludeSpaceTranslation);
66 void resetExcludeSpaceTranslation();
67
68 bool excludeSpaceLoadInstances() const;
69 bool isExcludeSpaceLoadInstancesDefaulted() const;
70 void setExcludeSpaceLoadInstances(bool excludeSpaceLoadInstances);
71 void resetExcludeSpaceLoadInstances();
72
73 /* Any non-defaulted value from other is brought over */
74 void overrideValuesWith(const ForwardTranslatorOptions& other);
75
76 private:
77 // configure logging
78 REGISTER_LOGGER("openstudio.ForwardTranslatorOptions");
79
80 static constexpr bool DEFAULT_RUNCONTROLSPECIALDAYS = true; // At 3.1.0 this was changed to true.
81 static constexpr bool DEFAULT_IP_TABULAR_OUTPUT = false;
82 static constexpr bool DEFAULT_NO_LIFECYCLECOSTS = false;
83 static constexpr bool DEFAULT_NO_SQLITE_OUTPUT = false;
84 static constexpr bool DEFAULT_NO_HTML_OUTPUT = false;
85 static constexpr bool DEFAULT_NO_VARIABLE_DICTIONARY = false;
86 static constexpr bool DEFAULT_NO_SPACE_TRANSLATION = false; // At 3.4.1, this was changed to false.
87 static constexpr bool DEFAULT_NO_SPACE_LOAD_INSTANCES = false;
88
89 bool m_runcontrolspecialdays = DEFAULT_RUNCONTROLSPECIALDAYS;
90 bool m_is_runcontrolspecialdays_defaulted = true;
91
92 bool m_ip_tabular_output = DEFAULT_IP_TABULAR_OUTPUT;
93 bool m_is_ip_tabular_output_defaulted = true;
94
95 bool m_no_lifecyclecosts = DEFAULT_NO_LIFECYCLECOSTS;
96 bool m_is_no_lifecyclecosts_defaulted = true;
97
98 bool m_no_sqlite_output = DEFAULT_NO_SQLITE_OUTPUT;
99 bool m_is_no_sqlite_output_defaulted = true;
100
101 bool m_no_html_output = DEFAULT_NO_HTML_OUTPUT;
102 bool m_is_no_html_output_defaulted = true;
103
104 bool m_no_variable_dictionary = DEFAULT_NO_VARIABLE_DICTIONARY;
105 bool m_is_no_variable_dictionary_defaulted = true;
106
107 bool m_no_space_translation = DEFAULT_NO_SPACE_TRANSLATION;
108 bool m_is_no_space_translation_defaulted = true;
109
110 bool m_no_space_load_instances = DEFAULT_NO_SPACE_LOAD_INSTANCES;
111 bool m_is_no_space_load_instances_defaulted = true;
112 };
113
114 } // namespace detail
115 } // namespace openstudio
116
117 #endif //UTILITIES_FILETYPES_FORWARDTRANSLATOROPTIONS_IMPL_HPP
118