mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 02:20:04 +00:00 
			
		
		
		
	Text product files
This commit is contained in:
		
							parent
							
								
									55d856a745
								
							
						
					
					
						commit
						e5c40b9eb5
					
				
					 7 changed files with 172 additions and 4 deletions
				
			
		
							
								
								
									
										38
									
								
								wxdata/include/scwx/awips/text_product_file.hpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								wxdata/include/scwx/awips/text_product_file.hpp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,38 @@ | |||
| #pragma once | ||||
| 
 | ||||
| #include <scwx/awips/text_product_message.hpp> | ||||
| 
 | ||||
| #include <memory> | ||||
| #include <string> | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
| namespace awips | ||||
| { | ||||
| 
 | ||||
| class TextProductFileImpl; | ||||
| 
 | ||||
| class TextProductFile | ||||
| { | ||||
| public: | ||||
|    explicit TextProductFile(); | ||||
|    ~TextProductFile(); | ||||
| 
 | ||||
|    TextProductFile(const TextProductFile&) = delete; | ||||
|    TextProductFile& operator=(const TextProductFile&) = delete; | ||||
| 
 | ||||
|    TextProductFile(TextProductFile&&) noexcept; | ||||
|    TextProductFile& operator=(TextProductFile&&) noexcept; | ||||
| 
 | ||||
|    size_t                              message_count() const; | ||||
|    std::shared_ptr<TextProductMessage> message(size_t i) const; | ||||
| 
 | ||||
|    bool LoadFile(const std::string& filename); | ||||
|    bool LoadData(std::istream& is); | ||||
| 
 | ||||
| private: | ||||
|    std::unique_ptr<TextProductFileImpl> p; | ||||
| }; | ||||
| 
 | ||||
| } // namespace awips
 | ||||
| } // namespace scwx
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat