mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 04:40:06 +00:00 
			
		
		
		
	Basic parsing for Archive II file
This commit is contained in:
		
							parent
							
								
									59d06a8632
								
							
						
					
					
						commit
						33c114ee9d
					
				
					 14 changed files with 412 additions and 1 deletions
				
			
		
							
								
								
									
										29
									
								
								wxdata/include/scwx/util/rangebuf.hpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								wxdata/include/scwx/util/rangebuf.hpp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,29 @@ | |||
| #pragma once | ||||
| 
 | ||||
| #include <streambuf> | ||||
| #include <vector> | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
| namespace util | ||||
| { | ||||
| 
 | ||||
| class rangebuf : public std::streambuf | ||||
| { | ||||
| public: | ||||
|    rangebuf(std::streambuf* sbuf, size_t size); | ||||
|    ~rangebuf() = default; | ||||
| 
 | ||||
|    rangebuf(const rangebuf&) = delete; | ||||
|    rangebuf& operator=(const rangebuf&) = delete; | ||||
| 
 | ||||
|    int underflow() override; | ||||
| 
 | ||||
| private: | ||||
|    size_t            size_; | ||||
|    std::streambuf*   sbuf_; | ||||
|    std::vector<char> data_; | ||||
| }; | ||||
| 
 | ||||
| } // namespace util
 | ||||
| } // namespace scwx
 | ||||
							
								
								
									
										40
									
								
								wxdata/include/scwx/wsr88d/rpg/ar2v_file.hpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								wxdata/include/scwx/wsr88d/rpg/ar2v_file.hpp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,40 @@ | |||
| #pragma once | ||||
| 
 | ||||
| #include <memory> | ||||
| #include <string> | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
| namespace wsr88d | ||||
| { | ||||
| namespace rpg | ||||
| { | ||||
| 
 | ||||
| class Ar2vFileImpl; | ||||
| 
 | ||||
| /**
 | ||||
|  * @brief The Archive II file is specified in the Interface Control Document for | ||||
|  * the Archive II/User, Document Number 2620010H, published by the WSR-88D Radar | ||||
|  * Operations Center. | ||||
|  */ | ||||
| class Ar2vFile | ||||
| { | ||||
| public: | ||||
|    explicit Ar2vFile(); | ||||
|    ~Ar2vFile(); | ||||
| 
 | ||||
|    Ar2vFile(const Ar2vFile&) = delete; | ||||
|    Ar2vFile& operator=(const Ar2vFile&) = delete; | ||||
| 
 | ||||
|    Ar2vFile(Ar2vFile&&) noexcept; | ||||
|    Ar2vFile& operator=(Ar2vFile&&); | ||||
| 
 | ||||
|    bool LoadFile(const std::string& filename); | ||||
| 
 | ||||
| private: | ||||
|    std::unique_ptr<Ar2vFileImpl> p; | ||||
| }; | ||||
| 
 | ||||
| } // namespace rpg
 | ||||
| } // namespace wsr88d
 | ||||
| } // namespace scwx
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat