src/model/ExternalInterfaceFunctionalMockupUnitImport.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_EXTERNALINTERFACEFUNCTIONALMOCKUPUNITIMPORT_HPP | ||
| 7 | #define MODEL_EXTERNALINTERFACEFUNCTIONALMOCKUPUNITIMPORT_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 ExternalInterfaceFunctionalMockupUnitImport_Impl; | ||
| 19 | |||
| 20 | } // namespace detail | ||
| 21 | |||
| 22 | /** ExternalInterfaceFunctionalMockupUnitImport is a ModelObject that wraps the OpenStudio IDD object 'OS:ExternalInterface:FunctionalMockupUnitImport'. */ | ||
| 23 | class MODEL_API ExternalInterfaceFunctionalMockupUnitImport : public ModelObject | ||
| 24 | { | ||
| 25 | public: | ||
| 26 | /** @name Constructors and Destructors */ | ||
| 27 | //@{ | ||
| 28 | |||
| 29 | explicit ExternalInterfaceFunctionalMockupUnitImport(const Model& model, const std::string& fmuName); | ||
| 30 | |||
| 31 | 38 | virtual ~ExternalInterfaceFunctionalMockupUnitImport() override = default; | |
| 32 | // Default the copy and move operators because the virtual dtor is explicit | ||
| 33 | ✗ | ExternalInterfaceFunctionalMockupUnitImport(const ExternalInterfaceFunctionalMockupUnitImport& other) = default; | |
| 34 | 4 | ExternalInterfaceFunctionalMockupUnitImport(ExternalInterfaceFunctionalMockupUnitImport&& other) = default; | |
| 35 | ✗ | ExternalInterfaceFunctionalMockupUnitImport& operator=(const ExternalInterfaceFunctionalMockupUnitImport&) = default; | |
| 36 | ✗ | ExternalInterfaceFunctionalMockupUnitImport& operator=(ExternalInterfaceFunctionalMockupUnitImport&&) = default; | |
| 37 | |||
| 38 | //@} | ||
| 39 | |||
| 40 | static IddObjectType iddObjectType(); | ||
| 41 | |||
| 42 | /** @name Getters */ | ||
| 43 | //@{ | ||
| 44 | |||
| 45 | double fMUTimeout() const; | ||
| 46 | |||
| 47 | bool isFMUTimeoutDefaulted() const; | ||
| 48 | |||
| 49 | int fMULoggingOn() const; | ||
| 50 | |||
| 51 | bool isFMULoggingOnDefaulted() const; | ||
| 52 | |||
| 53 | std::string fMUFileName() const; | ||
| 54 | |||
| 55 | //@} | ||
| 56 | /** @name Setters */ | ||
| 57 | //@{ | ||
| 58 | |||
| 59 | bool setFMUTimeout(double fMUTimeout); | ||
| 60 | |||
| 61 | void resetFMUTimeout(); | ||
| 62 | |||
| 63 | bool setFMULoggingOn(int fMULoggingOn); | ||
| 64 | |||
| 65 | void resetFMULoggingOn(); | ||
| 66 | |||
| 67 | bool setFMUFileName(const std::string& fMUName); | ||
| 68 | |||
| 69 | //@} | ||
| 70 | /** @name Other */ | ||
| 71 | //@{ | ||
| 72 | |||
| 73 | //@} | ||
| 74 | protected: | ||
| 75 | /// @cond | ||
| 76 | using ImplType = detail::ExternalInterfaceFunctionalMockupUnitImport_Impl; | ||
| 77 | |||
| 78 | explicit ExternalInterfaceFunctionalMockupUnitImport(std::shared_ptr<detail::ExternalInterfaceFunctionalMockupUnitImport_Impl> impl); | ||
| 79 | |||
| 80 | friend class detail::ExternalInterfaceFunctionalMockupUnitImport_Impl; | ||
| 81 | friend class Model; | ||
| 82 | friend class IdfObject; | ||
| 83 | friend class openstudio::detail::IdfObject_Impl; | ||
| 84 | /// @endcond | ||
| 85 | private: | ||
| 86 | − | REGISTER_LOGGER("openstudio.model.ExternalInterfaceFunctionalMockupUnitImport"); | |
| 87 | }; | ||
| 88 | |||
| 89 | /** \relates ExternalInterfaceFunctionalMockupUnitImport*/ | ||
| 90 | using OptionalExternalInterfaceFunctionalMockupUnitImport = boost::optional<ExternalInterfaceFunctionalMockupUnitImport>; | ||
| 91 | |||
| 92 | /** \relates ExternalInterfaceFunctionalMockupUnitImport*/ | ||
| 93 | using ExternalInterfaceFunctionalMockupUnitImportVector = std::vector<ExternalInterfaceFunctionalMockupUnitImport>; | ||
| 94 | |||
| 95 | } // namespace model | ||
| 96 | } // namespace openstudio | ||
| 97 | |||
| 98 | #endif // MODEL_EXTERNALINTERFACEFUNCTIONALMOCKUPUNITIMPORT_HPP | ||
| 99 |