mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 10:40:05 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			47 lines
		
	
	
	
		
			1,009 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
	
		
			1,009 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <scwx/awips/message.hpp>
 | |
| 
 | |
| #include <cstdint>
 | |
| #include <memory>
 | |
| 
 | |
| namespace scwx
 | |
| {
 | |
| namespace wsr88d
 | |
| {
 | |
| namespace rpg
 | |
| {
 | |
| 
 | |
| class TabularAlphanumericBlockImpl;
 | |
| 
 | |
| class TabularAlphanumericBlock : public awips::Message
 | |
| {
 | |
| public:
 | |
|    explicit TabularAlphanumericBlock();
 | |
|    ~TabularAlphanumericBlock();
 | |
| 
 | |
|    TabularAlphanumericBlock(const TabularAlphanumericBlock&) = delete;
 | |
|    TabularAlphanumericBlock&
 | |
|    operator=(const TabularAlphanumericBlock&) = delete;
 | |
| 
 | |
|    TabularAlphanumericBlock(TabularAlphanumericBlock&&) noexcept;
 | |
|    TabularAlphanumericBlock& operator=(TabularAlphanumericBlock&&) noexcept;
 | |
| 
 | |
|    int16_t block_divider() const;
 | |
| 
 | |
|    size_t data_size() const override;
 | |
| 
 | |
|    const std::vector<std::vector<std::string>>& page_list() const;
 | |
| 
 | |
|    bool Parse(std::istream& is);
 | |
|    bool Parse(std::istream& is, bool skipHeader);
 | |
| 
 | |
|    static constexpr size_t SIZE = 102u;
 | |
| 
 | |
| private:
 | |
|    std::unique_ptr<TabularAlphanumericBlockImpl> p;
 | |
| };
 | |
| 
 | |
| } // namespace rpg
 | |
| } // namespace wsr88d
 | |
| } // namespace scwx
 | 
