gwnavruntime/kernel/SF_Locale.h Source File

SF_Locale.h
Go to the documentation of this file.
1 /*
2 * Copyright 2016 Autodesk, Inc. All rights reserved.
3 * Use of this software is subject to the terms of the Autodesk license agreement and any attachments or Appendices thereto provided at the time of installation or download,
4 * or which otherwise accompanies this software in either electronic or hard copy form, or which is signed by you and accepted by Autodesk.
5 */
6 
7 /**************************************************************************
8 
9 PublicHeader: Kernel
10 Filename : KY_Locale.h
11 Content : Language-specific formatting information (locale)
12 Created : January 26, 2009
13 Authors : Sergey Sikorskiy, Maxim Shemanarev
14 
15 **************************************************************************/
16 
17 #ifndef INC_KY_Kernel_Locale_H
18 #define INC_KY_Kernel_Locale_H
19 
21 
22 namespace Kaim {
23 
24 class Locale
25 {
26 public:
27  Locale();
28 
29 public:
30  const String& GetEnglishName() const
31  {
32  return EnglishName;
33  }
34  const String& GetNativeName() const
35  {
36  return NativeName;
37  }
38  const String& GetGrouping() const
39  {
40  return Grouping;
41  }
42 
43  UInt32 GetGroupSeparator() const
44  {
45  return GroupSeparator;
46  }
47  UInt32 GetDecimalSeparator() const
48  {
49  return DecimalSeparator;
50  }
51  UInt32 GetPositiveSign() const
52  {
53  return PositiveSign;
54  }
55  UInt32 GetNegativeSign() const
56  {
57  return NegativeSign;
58  }
59  UInt32 GetExponentialSign() const
60  {
61  return ExponentialSign;
62  }
63 
64 protected:
65  void SetEnglishName(const String& name)
66  {
67  EnglishName = name;
68  }
69  void SetNativeName(const String& name)
70  {
71  NativeName = name;
72  }
73  void SetGrouping(const String& value)
74  {
75  Grouping = value;
76  }
77 
78  void SetGroupSeparator(UInt32 value)
79  {
80  GroupSeparator = value;
81  }
82  void SetDecimalSeparator(UInt32 value)
83  {
84  DecimalSeparator = value;
85  }
86  void SetPositiveSign(UInt32 value)
87  {
88  PositiveSign = value;
89  }
90  void SetNegativeSign(UInt32 value)
91  {
92  NegativeSign = value;
93  }
94  void SetExponentialSign(UInt32 value)
95  {
96  ExponentialSign = value;
97  }
98 
99 private:
100  String EnglishName;
101  String NativeName;
102 
103  String Grouping;
104  UInt32 GroupSeparator;
105  UInt32 DecimalSeparator;
106  UInt32 PositiveSign;
107  UInt32 NegativeSign;
108  UInt32 ExponentialSign;
109 };
110 
112 class SystemLocale : public Locale
113 {
114 public:
115  SystemLocale();
116 };
117 
118 } // Scaleform
119 
120 #endif // INC_KY_Kernel_Locale_H
std::uint32_t UInt32
uint32_t
Definition: SF_Types.h:137
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17