src/utilities/units/IddUnitString.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 UTILITIES_UNITS_IDDUNITSTRING_HPP | ||
| 7 | #define UTILITIES_UNITS_IDDUNITSTRING_HPP | ||
| 8 | |||
| 9 | #include "../UtilitiesAPI.hpp" | ||
| 10 | |||
| 11 | #include <string> | ||
| 12 | |||
| 13 | namespace openstudio { | ||
| 14 | |||
| 15 | class UTILITIES_API IddUnitString | ||
| 16 | { | ||
| 17 | public: | ||
| 18 | explicit IddUnitString(const std::string& s); | ||
| 19 | 365 | ~IddUnitString() = default; | |
| 20 | |||
| 21 | std::string toStandardUnitString() const; | ||
| 22 | |||
| 23 | std::string prettyString() const; | ||
| 24 | |||
| 25 | private: | ||
| 26 | IddUnitString(); | ||
| 27 | |||
| 28 | std::string m_original; | ||
| 29 | std::string m_converted; | ||
| 30 | }; | ||
| 31 | |||
| 32 | } // namespace openstudio | ||
| 33 | |||
| 34 | #endif // UTILITIES_UNITS_IDDUNITSTRING_HPP | ||
| 35 |