Cluedo Solver v1.0
Cluedo game solver making deductions.
Loading...
Searching...
No Matches
LanguageStrings.hpp File Reference

The file that contains the definition of the Cluedo::LanguageStrings class. More...

#include <memory>
#include <nlohmann/json.hpp>

Go to the source code of this file.

Classes

class  Cluedo::LanguageStrings
 
struct  Cluedo::LanguageStrings::Language
 A struct that contains the data of a language. More...
 

Macros

#define LS(key)
 A macro that is used to get a string from the Cluedo::LanguageStrings.
 
#define CSTR(s)
 A macro that is used to get a char* from a string.
 

Detailed Description

The file that contains the definition of the Cluedo::LanguageStrings class.

Macro Definition Documentation

◆ CSTR

#define CSTR ( s)
Value:
(std::string { (s) }.c_str())

A macro that is used to get a char* from a string.

The main reason why this macro exists is that the Dear ImGui library doesn't support std::string directly.

Parameters
sThe string to convert.

◆ LS

#define LS ( key)
Value:
static LanguageStrings & the()
Definition LanguageStrings.cpp:22
std::string_view get_string(std::string_view key) const
Definition LanguageStrings.cpp:47

A macro that is used to get a string from the Cluedo::LanguageStrings.

Parameters
keyThe key of the string.