src/model/Version_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_VERSION_IMPL_HPP | ||
| 7 | #define MODEL_VERSION_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelObject_Impl.hpp" | ||
| 10 | |||
| 11 | namespace openstudio { | ||
| 12 | namespace model { | ||
| 13 | |||
| 14 | class ParentObject; | ||
| 15 | |||
| 16 | namespace detail { | ||
| 17 | |||
| 18 | class MODEL_API Version_Impl : public ModelObject_Impl | ||
| 19 | { | ||
| 20 | public: | ||
| 21 | /** @name Constructors and Destructors */ | ||
| 22 | //@{ | ||
| 23 | |||
| 24 | // constructor | ||
| 25 | Version_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 26 | |||
| 27 | // construct from workspace | ||
| 28 | Version_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 29 | |||
| 30 | // clone copy constructor | ||
| 31 | Version_Impl(const Version_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 32 | |||
| 33 | // virtual destructor | ||
| 34 | 15725 | virtual ~Version_Impl() override = default; | |
| 35 | |||
| 36 | //@} | ||
| 37 | /** @name Virtual Methods */ | ||
| 38 | //@{ | ||
| 39 | |||
| 40 | // return the parent object in the hierarchy | ||
| 41 | virtual boost::optional<ParentObject> parent() const override; | ||
| 42 | |||
| 43 | // set the parent, child may have to call methods on the parent | ||
| 44 | virtual bool setParent(ParentObject& newParent) override; | ||
| 45 | |||
| 46 | // Get all output variable names that could be associated with this object. | ||
| 47 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 48 | |||
| 49 | virtual IddObjectType iddObjectType() const override; | ||
| 50 | |||
| 51 | //@} | ||
| 52 | /** @name Getters */ | ||
| 53 | //@{ | ||
| 54 | |||
| 55 | std::string versionIdentifier() const; | ||
| 56 | |||
| 57 | boost::optional<std::string> prereleaseIdentifier() const; | ||
| 58 | |||
| 59 | //@} | ||
| 60 | /** @name Setters */ | ||
| 61 | //@{ | ||
| 62 | |||
| 63 | bool setVersionIdentifier(const std::string& s); | ||
| 64 | |||
| 65 | bool setPrereleaseIdentifier(const std::string& s); | ||
| 66 | //@} | ||
| 67 | private: | ||
| 68 | REGISTER_LOGGER("openstudio.model.Version"); | ||
| 69 | }; | ||
| 70 | |||
| 71 | } // namespace detail | ||
| 72 | |||
| 73 | } // namespace model | ||
| 74 | } // namespace openstudio | ||
| 75 | |||
| 76 | #endif // MODEL_VERSION_IMPL_HPP | ||
| 77 |