mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 01:20:06 +00:00 
			
		
		
		
	Support loadable radar sites
This commit is contained in:
		
							parent
							
								
									56cda08b0d
								
							
						
					
					
						commit
						9c2f86b00a
					
				
					 8 changed files with 510 additions and 3 deletions
				
			
		
							
								
								
									
										45
									
								
								scwx-qt/source/scwx/qt/config/radar_site.hpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										45
									
								
								scwx-qt/source/scwx/qt/config/radar_site.hpp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,45 @@ | |||
| #pragma once | ||||
| 
 | ||||
| #include <memory> | ||||
| #include <string> | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
| namespace qt | ||||
| { | ||||
| namespace config | ||||
| { | ||||
| 
 | ||||
| class RadarSiteImpl; | ||||
| 
 | ||||
| class RadarSite | ||||
| { | ||||
| public: | ||||
|    explicit RadarSite(); | ||||
|    ~RadarSite(); | ||||
| 
 | ||||
|    RadarSite(const RadarSite&) = delete; | ||||
|    RadarSite& operator=(const RadarSite&) = delete; | ||||
| 
 | ||||
|    RadarSite(RadarSite&&) noexcept; | ||||
|    RadarSite& operator=(RadarSite&&) noexcept; | ||||
| 
 | ||||
|    std::string type() const; | ||||
|    std::string id() const; | ||||
|    double      latitude() const; | ||||
|    double      longitude() const; | ||||
|    std::string country() const; | ||||
|    std::string state() const; | ||||
|    std::string place() const; | ||||
| 
 | ||||
|    static std::shared_ptr<RadarSite> Get(const std::string& id); | ||||
| 
 | ||||
|    static size_t ReadConfig(const std::string& path); | ||||
| 
 | ||||
| private: | ||||
|    std::unique_ptr<RadarSiteImpl> p; | ||||
| }; | ||||
| 
 | ||||
| } // namespace config
 | ||||
| } // namespace qt
 | ||||
| } // namespace scwx
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat