forked from kovacsv/VisualScriptEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNE_LocString.hpp
More file actions
40 lines (30 loc) · 755 Bytes
/
Copy pathNE_LocString.hpp
File metadata and controls
40 lines (30 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef NE_LOCSTRING_HPP
#define NE_LOCSTRING_HPP
#include "NE_Serializable.hpp"
#include "NE_Localization.hpp"
#include <string>
namespace NE
{
class LocString
{
SERIALIZABLE;
public:
enum class Localization
{
Localize = 1,
DoNotLocalize = 2
};
explicit LocString ();
explicit LocString (const std::wstring& strValue);
explicit LocString (const std::wstring& strValue, Localization localization);
void SetCustom (const std::wstring& customValue);
std::wstring GetLocalized () const;
std::wstring GetLocalized (const Dictionary& dictionary) const;
Stream::Status Read (InputStream& inputStream);
Stream::Status Write (OutputStream& outputStream) const;
private:
std::wstring strValue;
Localization localization;
};
}
#endif