mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 05:20:06 +00:00 
			
		
		
		
	Adding map settings
This commit is contained in:
		
							parent
							
								
									0ab89060e9
								
							
						
					
					
						commit
						bcf2d7bffc
					
				
					 7 changed files with 330 additions and 30 deletions
				
			
		
							
								
								
									
										48
									
								
								scwx-qt/source/scwx/qt/settings/map_settings.hpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										48
									
								
								scwx-qt/source/scwx/qt/settings/map_settings.hpp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,48 @@ | |||
| #pragma once | ||||
| 
 | ||||
| #include <memory> | ||||
| #include <string> | ||||
| 
 | ||||
| #include <boost/json.hpp> | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
| namespace qt | ||||
| { | ||||
| namespace settings | ||||
| { | ||||
| 
 | ||||
| class MapSettingsImpl; | ||||
| 
 | ||||
| class MapSettings | ||||
| { | ||||
| public: | ||||
|    explicit MapSettings(); | ||||
|    ~MapSettings(); | ||||
| 
 | ||||
|    MapSettings(const MapSettings&) = delete; | ||||
|    MapSettings& operator=(const MapSettings&) = delete; | ||||
| 
 | ||||
|    MapSettings(MapSettings&&) noexcept; | ||||
|    MapSettings& operator=(MapSettings&&) noexcept; | ||||
| 
 | ||||
|    size_t      count() const; | ||||
|    std::string radar_site(size_t i) const; | ||||
|    std::string radar_product_group(size_t i) const; | ||||
|    std::string radar_product(size_t i) const; | ||||
| 
 | ||||
|    boost::json::value ToJson() const; | ||||
| 
 | ||||
|    static std::shared_ptr<MapSettings> Create(); | ||||
|    static std::shared_ptr<MapSettings> Load(const boost::json::value* json, | ||||
|                                             bool& jsonDirty); | ||||
| 
 | ||||
|    friend bool operator==(const MapSettings& lhs, const MapSettings& rhs); | ||||
| 
 | ||||
| private: | ||||
|    std::unique_ptr<MapSettingsImpl> p; | ||||
| }; | ||||
| 
 | ||||
| } // namespace settings
 | ||||
| } // namespace qt
 | ||||
| } // namespace scwx
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat