mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 07:20:04 +00:00 
			
		
		
		
	Expose additional fields from level 2 and level 3 files
This commit is contained in:
		
							parent
							
								
									8f362cc881
								
							
						
					
					
						commit
						3829b77994
					
				
					 4 changed files with 16 additions and 3 deletions
				
			
		|  | @ -32,8 +32,9 @@ public: | ||||||
|    Ar2vFile(Ar2vFile&&) noexcept; |    Ar2vFile(Ar2vFile&&) noexcept; | ||||||
|    Ar2vFile& operator=(Ar2vFile&&) noexcept; |    Ar2vFile& operator=(Ar2vFile&&) noexcept; | ||||||
| 
 | 
 | ||||||
|    uint32_t julian_date() const; |    uint32_t    julian_date() const; | ||||||
|    uint32_t milliseconds() const; |    uint32_t    milliseconds() const; | ||||||
|  |    std::string icao() const; | ||||||
| 
 | 
 | ||||||
|    std::chrono::system_clock::time_point start_time() const; |    std::chrono::system_clock::time_point start_time() const; | ||||||
|    std::chrono::system_clock::time_point end_time() const; |    std::chrono::system_clock::time_point end_time() const; | ||||||
|  |  | ||||||
|  | @ -1,5 +1,6 @@ | ||||||
| #pragma once | #pragma once | ||||||
| 
 | 
 | ||||||
|  | #include <scwx/awips/wmo_header.hpp> | ||||||
| #include <scwx/wsr88d/nexrad_file.hpp> | #include <scwx/wsr88d/nexrad_file.hpp> | ||||||
| #include <scwx/wsr88d/rpg/level3_message.hpp> | #include <scwx/wsr88d/rpg/level3_message.hpp> | ||||||
| 
 | 
 | ||||||
|  | @ -25,6 +26,7 @@ public: | ||||||
|    Level3File(Level3File&&) noexcept; |    Level3File(Level3File&&) noexcept; | ||||||
|    Level3File& operator=(Level3File&&) noexcept; |    Level3File& operator=(Level3File&&) noexcept; | ||||||
| 
 | 
 | ||||||
|  |    std::shared_ptr<awips::WmoHeader>   wmo_header() const; | ||||||
|    std::shared_ptr<rpg::Level3Message> message() const; |    std::shared_ptr<rpg::Level3Message> message() const; | ||||||
| 
 | 
 | ||||||
|    bool LoadFile(const std::string& filename); |    bool LoadFile(const std::string& filename); | ||||||
|  |  | ||||||
|  | @ -72,6 +72,12 @@ uint32_t Ar2vFile::milliseconds() const | ||||||
| { | { | ||||||
|    return p->milliseconds_; |    return p->milliseconds_; | ||||||
| } | } | ||||||
|  | 
 | ||||||
|  | std::string Ar2vFile::icao() const | ||||||
|  | { | ||||||
|  |    return p->icao_; | ||||||
|  | } | ||||||
|  | 
 | ||||||
| std::chrono::system_clock::time_point Ar2vFile::start_time() const | std::chrono::system_clock::time_point Ar2vFile::start_time() const | ||||||
| { | { | ||||||
|    return util::TimePoint(p->julianDate_, p->milliseconds_); |    return util::TimePoint(p->julianDate_, p->milliseconds_); | ||||||
|  |  | ||||||
|  | @ -1,5 +1,4 @@ | ||||||
| #include <scwx/wsr88d/level3_file.hpp> | #include <scwx/wsr88d/level3_file.hpp> | ||||||
| #include <scwx/awips/wmo_header.hpp> |  | ||||||
| #include <scwx/wsr88d/rpg/ccb_header.hpp> | #include <scwx/wsr88d/rpg/ccb_header.hpp> | ||||||
| #include <scwx/wsr88d/rpg/level3_message_factory.hpp> | #include <scwx/wsr88d/rpg/level3_message_factory.hpp> | ||||||
| 
 | 
 | ||||||
|  | @ -39,6 +38,11 @@ Level3File::~Level3File() = default; | ||||||
| Level3File::Level3File(Level3File&&) noexcept = default; | Level3File::Level3File(Level3File&&) noexcept = default; | ||||||
| Level3File& Level3File::operator=(Level3File&&) noexcept = default; | Level3File& Level3File::operator=(Level3File&&) noexcept = default; | ||||||
| 
 | 
 | ||||||
|  | std::shared_ptr<awips::WmoHeader> Level3File::wmo_header() const | ||||||
|  | { | ||||||
|  |    return p->wmoHeader_; | ||||||
|  | } | ||||||
|  | 
 | ||||||
| std::shared_ptr<rpg::Level3Message> Level3File::message() const | std::shared_ptr<rpg::Level3Message> Level3File::message() const | ||||||
| { | { | ||||||
|    return p->message_; |    return p->message_; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat