src/isomodel/Location.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 ISOMODEL_LOCATION_HPP | ||
| 7 | #define ISOMODEL_LOCATION_HPP | ||
| 8 | |||
| 9 | #include "WeatherData.hpp" | ||
| 10 | |||
| 11 | namespace openstudio { | ||
| 12 | namespace isomodel { | ||
| 13 | |||
| 14 | class Location | ||
| 15 | { | ||
| 16 | public: | ||
| 17 | 2 | double terrain() const { | |
| 18 | 2 | return _terrain; | |
| 19 | } | ||
| 20 | 1 | void setTerrain(double value) { | |
| 21 | 1 | _terrain = value; | |
| 22 | 1 | } | |
| 23 | 120 | std::shared_ptr<WeatherData> weather() const { | |
| 24 | 120 | return _weather; | |
| 25 | } | ||
| 26 | 1 | void setWeatherData(std::shared_ptr<WeatherData> value) { | |
| 27 | 1 | _weather = value; | |
| 28 | 1 | } | |
| 29 | |||
| 30 | private: | ||
| 31 | double _terrain = 0; | ||
| 32 | std::shared_ptr<WeatherData> _weather; | ||
| 33 | }; | ||
| 34 | |||
| 35 | } // namespace isomodel | ||
| 36 | } // namespace openstudio | ||
| 37 | #endif // ISOMODEL_LOCATION_HPP | ||
| 38 |