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