mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-30 23:40:06 +00:00 
			
		
		
		
	Finish parsing Storm Position / Forecast page
This commit is contained in:
		
							parent
							
								
									0415223571
								
							
						
					
					
						commit
						925f91995a
					
				
					 4 changed files with 127 additions and 9 deletions
				
			
		|  | @ -30,6 +30,8 @@ std::vector<std::string> ParseTokens(const std::string&       s, | |||
| 
 | ||||
| std::string ToString(const std::vector<std::string>& v); | ||||
| 
 | ||||
| std::optional<float> TryParseFloat(const std::string& str); | ||||
| 
 | ||||
| template<typename T> | ||||
| std::optional<T> TryParseUnsignedLong(const std::string& str); | ||||
| 
 | ||||
|  |  | |||
|  | @ -22,21 +22,21 @@ public: | |||
|    { | ||||
|       struct Position | ||||
|       { | ||||
|          std::optional<units::angle::degrees<float>>         azimuth_ {}; | ||||
|          std::optional<units::length::nautical_miles<float>> range_ {}; | ||||
|          std::optional<units::angle::degrees<std::uint16_t>> azimuth_ {}; | ||||
|          std::optional<units::length::nautical_miles<std::uint16_t>> range_ {}; | ||||
|       }; | ||||
| 
 | ||||
|       Position                                     currentPosition_ {}; | ||||
|       std::optional<units::angle::degrees<float>>  direction_; | ||||
|       std::optional<units::velocity::knots<float>> speed_; | ||||
|       Position                                             currentPosition_ {}; | ||||
|       std::optional<units::angle::degrees<std::uint16_t>>  direction_; | ||||
|       std::optional<units::velocity::knots<std::uint16_t>> speed_; | ||||
| 
 | ||||
|       std::array<Position, 4> forecastPosition_ {}; | ||||
| 
 | ||||
|       std::optional<units::length::nautical_miles<float>> forecastError_ {}; | ||||
|       std::optional<units::length::nautical_miles<float>> meanError_ {}; | ||||
| 
 | ||||
|       std::optional<std::int16_t>               maxDbz_ {}; | ||||
|       std::optional<units::length::feet<float>> maxDbzHeight_ {}; | ||||
|       std::optional<std::int16_t>                       maxDbz_ {}; | ||||
|       std::optional<units::length::feet<std::uint32_t>> maxDbzHeight_ {}; | ||||
|    }; | ||||
| 
 | ||||
|    explicit StormTrackingInformationMessage(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat