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