3#include <NDEVR/String.h>
4#include <NDEVR/Dictionary.h>
7 class TranslatedString;
49 template<
class t_type>
62 struct hash<
NDEVR::TranslatedString>
66 return static_cast<size_t>(s.translationID().hash());
Definition Dictionary.h:48
static TranslatedString DisplayString(const t_type &value)
Definition TranslatedString.h:50
static void toDisplayString(const t_type &value, TranslatedString &string)
Definition TranslatedString.h:9
NDEVR_BASE_API TranslatedString & operator=(TranslatedString &&translation) noexcept
Definition TranslatedString.cpp:182
NDEVR_BASE_API TranslatedString & replace(const String &sub_string, const TranslatedString &replacement)
Definition TranslatedString.cpp:51
NDEVR_BASE_API bool operator==(const TranslatedString &translation) const
Definition TranslatedString.cpp:235
NDEVR_BASE_API bool operator!=(const TranslatedString &translation) const
Definition TranslatedString.cpp:208
~TranslatedString()
Definition TranslatedString.h:12
String m_translation_id
Definition TranslatedString.h:44
String m_translation
Definition TranslatedString.h:46
NDEVR_BASE_API bool isTranslatable() const
Definition TranslatedString.cpp:58
bool m_is_translated
Definition TranslatedString.h:47
void calculateEnglishString()
Definition TranslatedString.cpp:75
NDEVR_BASE_API const String & translationID() const
Definition TranslatedString.cpp:134
NDEVR_BASE_API const String & translation() const
Definition TranslatedString.cpp:104
NDEVR_BASE_API bool operator>(const TranslatedString &value) const
Definition TranslatedString.cpp:231
Dictionary< String, TranslatedString * > m_replacements
Definition TranslatedString.h:43
NDEVR_BASE_API const String & englishTranslation() const
Definition TranslatedString.cpp:140
NDEVR_BASE_API TranslatedString()
Definition TranslatedString.cpp:5
NDEVR_BASE_API bool operator<(const TranslatedString &value) const
Definition TranslatedString.cpp:227
NDEVR_BASE_API bool isEmpty() const
Definition TranslatedString.cpp:67
NDEVR_BASE_API void retranslate()
Definition TranslatedString.cpp:47
NDEVR_BASE_API String internalValue() const
Definition TranslatedString.cpp:144
NDEVR_BASE_API bool hasReplacements() const
Definition TranslatedString.cpp:62
String m_english_string
Definition TranslatedString.h:45
Definition BaseValues.hpp:272
std::size_t operator()(const NDEVR::TranslatedString &s) const noexcept
Definition TranslatedString.h:64