mirror of
				https://github.com/TheLartians/ModernCppStarter.git
				synced 2025-10-31 10:11:34 +01:00 
			
		
		
		
	* Use m.css for generating doxygen docs * pass CMake variables to Doxygen * Setup config for Pages section * show not explicitly documented objects * update patch comment * update comment on M_SHOW_UNDOCUMENTED Co-authored-by: Lars Melchior <TheLartians@users.noreply.github.com>
		
			
				
	
	
		
			31 lines
		
	
	
	
		
			673 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
	
		
			673 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <string>
 | |
| 
 | |
| namespace greeter {
 | |
| 
 | |
|   /**  Language codes to be used with the Greeter class */
 | |
|   enum class LanguageCode { EN, DE, ES, FR };
 | |
| 
 | |
|   /**
 | |
|    * @brief A class for saying hello in multiple languages
 | |
|    */
 | |
|   class Greeter {
 | |
|     std::string name;
 | |
| 
 | |
|   public:
 | |
|     /**
 | |
|      * @brief Creates a new greeter
 | |
|      * @param name the name to greet
 | |
|      */
 | |
|     Greeter(std::string name);
 | |
| 
 | |
|     /**
 | |
|      * @brief Creates a localized string containing the greeting
 | |
|      * @param lang the language to greet in
 | |
|      * @return a string containing the greeting
 | |
|      */
 | |
|     std::string greet(LanguageCode lang = LanguageCode::EN) const;
 | |
|   };
 | |
| 
 | |
| }  // namespace greeter
 |