mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 03:00:06 +00:00 
			
		
		
		
	Parse coded information from text product content
This commit is contained in:
		
							parent
							
								
									8f3baaa7c3
								
							
						
					
					
						commit
						56cda08b0d
					
				
					 5 changed files with 115 additions and 9 deletions
				
			
		|  | @ -205,5 +205,18 @@ bool CodedLocation::Parse(const StringRange& lines, const std::string& wfo) | |||
|    return dataValid; | ||||
| } | ||||
| 
 | ||||
| std::optional<CodedLocation> CodedLocation::Create(const StringRange& lines, | ||||
|                                                    const std::string& wfo) | ||||
| { | ||||
|    std::optional<CodedLocation> location = std::make_optional<CodedLocation>(); | ||||
| 
 | ||||
|    if (!location->Parse(lines, wfo)) | ||||
|    { | ||||
|       location.reset(); | ||||
|    } | ||||
| 
 | ||||
|    return location; | ||||
| } | ||||
| 
 | ||||
| } // namespace awips
 | ||||
| } // namespace scwx
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat