src/model/ExternalInterfaceFunctionalMockupUnitExportToVariable.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_EXTERNALINTERFACEFUNCTIONALMOCKUPUNITEXPORTTOVARIABLE_HPP | ||
| 7 | #define MODEL_EXTERNALINTERFACEFUNCTIONALMOCKUPUNITEXPORTTOVARIABLE_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "ModelObject.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | |||
| 14 | namespace model { | ||
| 15 | |||
| 16 | namespace detail { | ||
| 17 | |||
| 18 | class ExternalInterfaceFunctionalMockupUnitExportToVariable_Impl; | ||
| 19 | |||
| 20 | } // namespace detail | ||
| 21 | |||
| 22 | /** ExternalInterfaceFunctionalMockupUnitExportToVariable is a ModelObject that wraps the OpenStudio IDD object 'OS:ExternalInterface:FunctionalMockupUnitExport:To:Variable'. */ | ||
| 23 | class MODEL_API ExternalInterfaceFunctionalMockupUnitExportToVariable : public ModelObject | ||
| 24 | { | ||
| 25 | public: | ||
| 26 | /** @name Constructors and Destructors */ | ||
| 27 | //@{ | ||
| 28 | |||
| 29 | explicit ExternalInterfaceFunctionalMockupUnitExportToVariable(const Model& model, const std::string& fMUVariableName, double initialValue); | ||
| 30 | |||
| 31 | 3 | virtual ~ExternalInterfaceFunctionalMockupUnitExportToVariable() override = default; | |
| 32 | // Default the copy and move operators because the virtual dtor is explicit | ||
| 33 | ✗ | ExternalInterfaceFunctionalMockupUnitExportToVariable(const ExternalInterfaceFunctionalMockupUnitExportToVariable& other) = default; | |
| 34 | ✗ | ExternalInterfaceFunctionalMockupUnitExportToVariable(ExternalInterfaceFunctionalMockupUnitExportToVariable&& other) = default; | |
| 35 | ✗ | ExternalInterfaceFunctionalMockupUnitExportToVariable& operator=(const ExternalInterfaceFunctionalMockupUnitExportToVariable&) = default; | |
| 36 | ✗ | ExternalInterfaceFunctionalMockupUnitExportToVariable& operator=(ExternalInterfaceFunctionalMockupUnitExportToVariable&&) = default; | |
| 37 | |||
| 38 | //@} | ||
| 39 | |||
| 40 | static IddObjectType iddObjectType(); | ||
| 41 | |||
| 42 | /** @name Getters */ | ||
| 43 | //@{ | ||
| 44 | |||
| 45 | std::string fMUVariableName() const; | ||
| 46 | |||
| 47 | double initialValue() const; | ||
| 48 | |||
| 49 | //@} | ||
| 50 | /** @name Setters */ | ||
| 51 | //@{ | ||
| 52 | |||
| 53 | bool setFMUVariableName(const std::string& fMUVariableName); | ||
| 54 | |||
| 55 | bool setInitialValue(double initialValue); | ||
| 56 | |||
| 57 | //@} | ||
| 58 | /** @name Other */ | ||
| 59 | //@{ | ||
| 60 | |||
| 61 | //@} | ||
| 62 | protected: | ||
| 63 | /// @cond | ||
| 64 | using ImplType = detail::ExternalInterfaceFunctionalMockupUnitExportToVariable_Impl; | ||
| 65 | |||
| 66 | explicit ExternalInterfaceFunctionalMockupUnitExportToVariable( | ||
| 67 | std::shared_ptr<detail::ExternalInterfaceFunctionalMockupUnitExportToVariable_Impl> impl); | ||
| 68 | |||
| 69 | friend class detail::ExternalInterfaceFunctionalMockupUnitExportToVariable_Impl; | ||
| 70 | friend class Model; | ||
| 71 | friend class IdfObject; | ||
| 72 | friend class openstudio::detail::IdfObject_Impl; | ||
| 73 | /// @endcond | ||
| 74 | private: | ||
| 75 | REGISTER_LOGGER("openstudio.model.ExternalInterfaceFunctionalMockupUnitExportToVariable"); | ||
| 76 | }; | ||
| 77 | |||
| 78 | /** \relates ExternalInterfaceFunctionalMockupUnitExportToVariable*/ | ||
| 79 | using OptionalExternalInterfaceFunctionalMockupUnitExportToVariable = boost::optional<ExternalInterfaceFunctionalMockupUnitExportToVariable>; | ||
| 80 | |||
| 81 | /** \relates ExternalInterfaceFunctionalMockupUnitExportToVariable*/ | ||
| 82 | using ExternalInterfaceFunctionalMockupUnitExportToVariableVector = std::vector<ExternalInterfaceFunctionalMockupUnitExportToVariable>; | ||
| 83 | |||
| 84 | } // namespace model | ||
| 85 | } // namespace openstudio | ||
| 86 | |||
| 87 | #endif // MODEL_EXTERNALINTERFACEFUNCTIONALMOCKUPUNITEXPORTTOVARIABLE_HPP | ||
| 88 |