mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 05:10:04 +00:00 
			
		
		
		
	Alert layer should handle alerts by UUID if messages are received out of sequence
This commit is contained in:
		
							parent
							
								
									3f83c8e4a9
								
							
						
					
					
						commit
						16507adbe9
					
				
					 5 changed files with 46 additions and 7 deletions
				
			
		|  | @ -9,6 +9,7 @@ | |||
| 
 | ||||
| #include <boost/algorithm/string/replace.hpp> | ||||
| #include <boost/algorithm/string/trim.hpp> | ||||
| #include <boost/uuid/random_generator.hpp> | ||||
| #include <re2/re2.h> | ||||
| 
 | ||||
| namespace scwx::awips | ||||
|  | @ -53,6 +54,8 @@ public: | |||
|    TextProductMessageImpl(const TextProductMessageImpl&&)            = delete; | ||||
|    TextProductMessageImpl& operator=(const TextProductMessageImpl&&) = delete; | ||||
| 
 | ||||
|    boost::uuids::uuid uuid_ {boost::uuids::random_generator()()}; | ||||
| 
 | ||||
|    std::string                           messageContent_; | ||||
|    std::shared_ptr<WmoHeader>            wmoHeader_; | ||||
|    std::vector<std::string>              mndHeader_; | ||||
|  | @ -70,6 +73,11 @@ TextProductMessage::TextProductMessage(TextProductMessage&&) noexcept = default; | |||
| TextProductMessage& | ||||
| TextProductMessage::operator=(TextProductMessage&&) noexcept = default; | ||||
| 
 | ||||
| boost::uuids::uuid TextProductMessage::uuid() const | ||||
| { | ||||
|    return p->uuid_; | ||||
| } | ||||
| 
 | ||||
| std::string TextProductMessage::message_content() const | ||||
| { | ||||
|    return p->messageContent_; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat