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 | 935 | 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 | bool excludeConstructionAssignmentSets() const; | ||
| 74 | bool isExcludeConstructionAssignmentSetsDefaulted() const; | ||
| 75 | void setExcludeConstructionAssignmentSets(bool excludeConstructionAssignmentSets); | ||
| 76 | void resetExcludeConstructionAssignmentSets(); | ||
| 77 | |||
| 78 | /* Any non-defaulted value from other is brought over */ | ||
| 79 | void overrideValuesWith(const ForwardTranslatorOptions& other); | ||
| 80 | |||
| 81 | private: | ||
| 82 | // configure logging | ||
| 83 | REGISTER_LOGGER("openstudio.ForwardTranslatorOptions"); | ||
| 84 | |||
| 85 | static constexpr bool DEFAULT_RUNCONTROLSPECIALDAYS = true; // At 3.1.0 this was changed to true. | ||
| 86 | static constexpr bool DEFAULT_IP_TABULAR_OUTPUT = false; | ||
| 87 | static constexpr bool DEFAULT_NO_LIFECYCLECOSTS = false; | ||
| 88 | static constexpr bool DEFAULT_NO_SQLITE_OUTPUT = false; | ||
| 89 | static constexpr bool DEFAULT_NO_HTML_OUTPUT = false; | ||
| 90 | static constexpr bool DEFAULT_NO_VARIABLE_DICTIONARY = false; | ||
| 91 | static constexpr bool DEFAULT_NO_SPACE_TRANSLATION = false; // At 3.4.1, this was changed to false. | ||
| 92 | static constexpr bool DEFAULT_NO_SPACE_LOAD_INSTANCES = false; | ||
| 93 | static constexpr bool DEFAULT_NO_CONSTRUCTION_ASSIGNMENT_SETS = false; | ||
| 94 | |||
| 95 | bool m_runcontrolspecialdays = DEFAULT_RUNCONTROLSPECIALDAYS; | ||
| 96 | bool m_is_runcontrolspecialdays_defaulted = true; | ||
| 97 | |||
| 98 | bool m_ip_tabular_output = DEFAULT_IP_TABULAR_OUTPUT; | ||
| 99 | bool m_is_ip_tabular_output_defaulted = true; | ||
| 100 | |||
| 101 | bool m_no_lifecyclecosts = DEFAULT_NO_LIFECYCLECOSTS; | ||
| 102 | bool m_is_no_lifecyclecosts_defaulted = true; | ||
| 103 | |||
| 104 | bool m_no_sqlite_output = DEFAULT_NO_SQLITE_OUTPUT; | ||
| 105 | bool m_is_no_sqlite_output_defaulted = true; | ||
| 106 | |||
| 107 | bool m_no_html_output = DEFAULT_NO_HTML_OUTPUT; | ||
| 108 | bool m_is_no_html_output_defaulted = true; | ||
| 109 | |||
| 110 | bool m_no_variable_dictionary = DEFAULT_NO_VARIABLE_DICTIONARY; | ||
| 111 | bool m_is_no_variable_dictionary_defaulted = true; | ||
| 112 | |||
| 113 | bool m_no_space_translation = DEFAULT_NO_SPACE_TRANSLATION; | ||
| 114 | bool m_is_no_space_translation_defaulted = true; | ||
| 115 | |||
| 116 | bool m_no_space_load_instances = DEFAULT_NO_SPACE_LOAD_INSTANCES; | ||
| 117 | bool m_is_no_space_load_instances_defaulted = true; | ||
| 118 | |||
| 119 | bool m_no_construction_assignment_sets = DEFAULT_NO_CONSTRUCTION_ASSIGNMENT_SETS; | ||
| 120 | bool m_is_no_construction_assignment_sets_defaulted = true; | ||
| 121 | }; | ||
| 122 | |||
| 123 | } // namespace detail | ||
| 124 | } // namespace openstudio | ||
| 125 | |||
| 126 | #endif //UTILITIES_FILETYPES_FORWARDTRANSLATOROPTIONS_IMPL_HPP | ||
| 127 |