src/model/StandardsInformationMaterial_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_STANDARDSINFORMATIONMATERIAL_IMPL_HPP | ||
| 7 | #define MODEL_STANDARDSINFORMATIONMATERIAL_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelObject_Impl.hpp" | ||
| 10 | |||
| 11 | namespace Json { | ||
| 12 | class Value; | ||
| 13 | } | ||
| 14 | |||
| 15 | namespace openstudio { | ||
| 16 | namespace model { | ||
| 17 | |||
| 18 | class Material; | ||
| 19 | |||
| 20 | namespace detail { | ||
| 21 | |||
| 22 | /** StandardsInformationMaterial_Impl is a ModelObject_Impl that is the implementation class for StandardsInformationMaterial.*/ | ||
| 23 | class MODEL_API StandardsInformationMaterial_Impl : public ModelObject_Impl | ||
| 24 | { | ||
| 25 | public: | ||
| 26 | /** @name Constructors and Destructors */ | ||
| 27 | //@{ | ||
| 28 | |||
| 29 | StandardsInformationMaterial_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 30 | |||
| 31 | StandardsInformationMaterial_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 32 | |||
| 33 | StandardsInformationMaterial_Impl(const StandardsInformationMaterial_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 34 | |||
| 35 | 910 | virtual ~StandardsInformationMaterial_Impl() override = default; | |
| 36 | |||
| 37 | //@} | ||
| 38 | /** @name Virtual Methods */ | ||
| 39 | //@{ | ||
| 40 | |||
| 41 | virtual boost::optional<ParentObject> parent() const override; | ||
| 42 | |||
| 43 | virtual bool setParent(ParentObject& newParent) override; | ||
| 44 | |||
| 45 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 46 | |||
| 47 | virtual IddObjectType iddObjectType() const override; | ||
| 48 | |||
| 49 | //@} | ||
| 50 | /** @name Getters */ | ||
| 51 | //@{ | ||
| 52 | |||
| 53 | Material material() const; | ||
| 54 | |||
| 55 | boost::optional<std::string> materialStandard() const; | ||
| 56 | std::vector<std::string> suggestedMaterialStandards() const; | ||
| 57 | |||
| 58 | boost::optional<std::string> materialStandardSource() const; | ||
| 59 | std::vector<std::string> suggestedMaterialStandardSources() const; | ||
| 60 | |||
| 61 | boost::optional<std::string> standardsCategory() const; | ||
| 62 | std::vector<std::string> suggestedStandardsCategories() const; | ||
| 63 | bool isCompositeMaterial() const; | ||
| 64 | |||
| 65 | boost::optional<std::string> standardsIdentifier() const; | ||
| 66 | std::vector<std::string> suggestedStandardsIdentifiers() const; | ||
| 67 | |||
| 68 | boost::optional<std::string> compositeFramingMaterial() const; | ||
| 69 | std::vector<std::string> suggestedCompositeFramingMaterials() const; | ||
| 70 | |||
| 71 | boost::optional<std::string> compositeFramingConfiguration() const; | ||
| 72 | std::vector<std::string> suggestedCompositeFramingConfigurations() const; | ||
| 73 | |||
| 74 | boost::optional<std::string> compositeFramingDepth() const; | ||
| 75 | std::vector<std::string> suggestedCompositeFramingDepths() const; | ||
| 76 | |||
| 77 | boost::optional<std::string> compositeFramingSize() const; | ||
| 78 | std::vector<std::string> suggestedCompositeFramingSizes() const; | ||
| 79 | |||
| 80 | boost::optional<std::string> compositeCavityInsulation() const; | ||
| 81 | std::vector<std::string> suggestedCompositeCavityInsulations() const; | ||
| 82 | |||
| 83 | //@} | ||
| 84 | /** @name Setters */ | ||
| 85 | //@{ | ||
| 86 | |||
| 87 | bool setMaterialStandard(const std::string& materialStandard); | ||
| 88 | void resetMaterialStandard(); | ||
| 89 | |||
| 90 | bool setMaterialStandardSource(const std::string& materialStandardSource); | ||
| 91 | void resetMaterialStandardSource(); | ||
| 92 | |||
| 93 | bool setStandardsCategory(const std::string& standardsCategory); | ||
| 94 | void resetStandardsCategory(); | ||
| 95 | |||
| 96 | bool setStandardsIdentifier(const std::string& standardsIdentifier); | ||
| 97 | void resetStandardsIdentifier(); | ||
| 98 | |||
| 99 | bool setCompositeFramingMaterial(const std::string& compositeFramingMaterial); | ||
| 100 | void resetCompositeFramingMaterial(); | ||
| 101 | |||
| 102 | bool setCompositeFramingConfiguration(const std::string& compositeFramingConfiguration); | ||
| 103 | void resetCompositeFramingConfiguration(); | ||
| 104 | |||
| 105 | bool setCompositeFramingDepth(const std::string& compositeFramingDepth); | ||
| 106 | void resetCompositeFramingDepth(); | ||
| 107 | |||
| 108 | bool setCompositeFramingSize(const std::string& compositeFramingSize); | ||
| 109 | void resetCompositeFramingSize(); | ||
| 110 | |||
| 111 | bool setCompositeCavityInsulation(const std::string& compositeCavityInsulation); | ||
| 112 | void resetCompositeCavityInsulation(); | ||
| 113 | |||
| 114 | //@} | ||
| 115 | /** @name Other */ | ||
| 116 | //@{ | ||
| 117 | |||
| 118 | //@} | ||
| 119 | protected: | ||
| 120 | private: | ||
| 121 | − | REGISTER_LOGGER("openstudio.model.StandardsInformationMaterial"); | |
| 122 | |||
| 123 | // Relies on utilties/StandardsJSON since it's used in several places | ||
| 124 | // Here we store a Json::Value rather than the StandardsJSON because we only care about the "materials" primaryKey | ||
| 125 | // Not the whole StandardsJSON | ||
| 126 | static const Json::Value& getStandardsJSON(); | ||
| 127 | static Json::Value parseStandardsJSON(); | ||
| 128 | }; | ||
| 129 | |||
| 130 | } // namespace detail | ||
| 131 | |||
| 132 | } // namespace model | ||
| 133 | } // namespace openstudio | ||
| 134 | |||
| 135 | #endif // MODEL_STANDARDSINFORMATIONMATERIAL_IMPL_HPP | ||
| 136 |