You.i Engine
YiTranslation.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2020. All rights reserved.
2 #ifndef _YI_TRANSLATION_H_
3 #define _YI_TRANSLATION_H_
4 
5 #include "utility/YiString.h"
6 
7 #include <memory>
8 #include <vector>
9 
10 class CYITranslationPriv;
11 class CYITranslator;
12 
21 CYIString YiTranslate(const CYIString &text);
22 
27 
69 {
70 public:
72  CYITranslation(const CYITranslation &rOther);
73  virtual ~CYITranslation();
74 
75  CYITranslation &operator=(const CYITranslation &rOther);
76 
80  std::shared_ptr<CYITranslator> GetTranslator() const;
81 
86  void SetTranslator(const std::shared_ptr<CYITranslator> &pTranslator);
87 
94  CYIString Translate(const CYIString &text);
95 
96 private:
97  std::unique_ptr<CYITranslationPriv> m_pPriv;
98 };
101 #endif // _YI_TRANSLATION_H_
Container class for Unicode strings. Conceptually, a CYIString object is a sequence of Unicode charac...
Definition: YiString.h:36
Provides string localization.
Definition: YiTranslation.h:68
CYIString YiTranslate(const CYIString &text)
CYIString YiTranslateMarker(const CYIString &text)
virtual ~CYITranslation()
void SetTranslator(const std::shared_ptr< CYITranslator > &pTranslator)
CYITranslation & operator=(const CYITranslation &rOther)
CYIString Translate(const CYIString &text)
std::shared_ptr< CYITranslator > GetTranslator() const
Definition: YiTranslator.h:12