#include <PBProperties.h>
Definition at line 32 of file PBProperties.h.
◆ Type
Enumerator |
---|
Int | |
UInt32 | |
Float | |
Bool | |
Properties | |
PropertyName | |
Array | |
String | |
LocaleString | |
Definition at line 35 of file PBProperties.h.
36 {
37 Int,
38 UInt32,
39 Float,
40 Bool,
41 Properties,
42 PropertyName,
43 Array,
44 String,
45 LocaleString
46 };
◆ PBPropertyValue() [1/12]
PBPropertyValue::PBPropertyValue |
( |
| ) |
|
|
inline |
◆ PBPropertyValue() [2/12]
PBPropertyValue::PBPropertyValue |
( |
TINT | a_iValue | ) |
|
|
inline |
Definition at line 57 of file PBProperties.h.
58 {
60 m_uValue.Int = a_iValue;
61 }
◆ PBPropertyValue() [3/12]
PBPropertyValue::PBPropertyValue |
( |
TBOOL | a_bValue | ) |
|
|
inline |
Definition at line 63 of file PBProperties.h.
64 {
66 m_uValue.Bool = a_bValue;
67 }
◆ PBPropertyValue() [4/12]
PBPropertyValue::PBPropertyValue |
( |
TFLOAT | a_fValue | ) |
|
|
inline |
Definition at line 69 of file PBProperties.h.
70 {
72 m_uValue.Float = a_fValue;
73 }
◆ PBPropertyValue() [5/12]
PBPropertyValue::PBPropertyValue |
( |
TUINT32 | a_uiValue | ) |
|
|
inline |
Definition at line 75 of file PBProperties.h.
76 {
78 m_uValue.UInt32 = a_uiValue;
79 }
◆ PBPropertyValue() [6/12]
PBPropertyValue::PBPropertyValue |
( |
const TCHAR * | a_pchValue | ) |
|
|
inline |
Definition at line 81 of file PBProperties.h.
82 {
84 m_uValue.String =
new TCHAR[ Toshi::TStringManager::String8Length( a_pchValue ) + 1 ];
85 Toshi::TStringManager::String8Copy( m_uValue.String, a_pchValue );
86 }
◆ PBPropertyValue() [7/12]
PBPropertyValue::PBPropertyValue |
( |
const Toshi::TString8 & | a_sValue | ) |
|
|
inline |
Definition at line 88 of file PBProperties.h.
89 {
91 m_uValue.String =
new TCHAR[ a_sValue.Length() + 1 ];
92 Toshi::TStringManager::String8Copy( m_uValue.String, a_sValue );
93 }
◆ PBPropertyValue() [8/12]
◆ PBPropertyValue() [9/12]
PBPropertyValue::PBPropertyValue |
( |
class PBProperties * | a_pProperties | ) |
|
|
inline |
Definition at line 101 of file PBProperties.h.
102 {
104 m_uValue.Properties = a_pProperties;
105 }
◆ PBPropertyValue() [10/12]
Definition at line 107 of file PBProperties.h.
108 {
110 m_uValue.Array = a_pArray;
111 }
◆ PBPropertyValue() [11/12]
Definition at line 1063 of file PBProperties.h.
1064{
1065 m_eType = other.m_eType;
1066 m_uValue.Pointer =
TNULL;
1067
1069 m_uValue.Array =
new PBPropertyValueArray( *other.m_uValue.
Array );
1071 m_uValue.Properties =
new PBProperties( *other.m_uValue.
Properties );
1074 else
1075 m_uValue = other.m_uValue;
1076}
class PBPropertyValueArray * Array
void SetString(const Toshi::TString8 &a_sValue)
class PBProperties * Properties
◆ PBPropertyValue() [12/12]
Definition at line 1078 of file PBProperties.h.
1079{
1080 m_eType = other.m_eType;
1081 m_uValue.Pointer = other.m_uValue.
Pointer;
1083}
◆ ~PBPropertyValue()
PBPropertyValue::~PBPropertyValue |
( |
| ) |
|
|
inline |
◆ GetArray() [1/2]
Definition at line 190 of file PBProperties.h.
191 {
193 return m_uValue.Array;
194 }
◆ GetArray() [2/2]
Definition at line 178 of file PBProperties.h.
179 {
181 return m_uValue.Array;
182 }
◆ GetBoolean()
TBOOL PBPropertyValue::GetBoolean |
( |
| ) |
const |
|
inline |
◆ GetBooleanPointer()
TBOOL * PBPropertyValue::GetBooleanPointer |
( |
| ) |
|
|
inline |
Definition at line 196 of file PBProperties.h.
197 {
199 return &m_uValue.Bool;
200 }
◆ GetFloat()
TFLOAT PBPropertyValue::GetFloat |
( |
| ) |
const |
|
inline |
◆ GetFloatPointer()
TFLOAT * PBPropertyValue::GetFloatPointer |
( |
| ) |
|
|
inline |
Definition at line 202 of file PBProperties.h.
203 {
205 return &m_uValue.Float;
206 }
◆ GetInteger()
TINT PBPropertyValue::GetInteger |
( |
| ) |
const |
|
inline |
◆ GetIntegerPointer()
TINT * PBPropertyValue::GetIntegerPointer |
( |
| ) |
|
|
inline |
◆ GetLocaleString()
Definition at line 152 of file PBProperties.h.
153 {
155 return m_uValue.UInt32;
156 }
◆ GetProperties() [1/2]
Definition at line 184 of file PBProperties.h.
185 {
187 return m_uValue.Properties;
188 }
◆ GetProperties() [2/2]
const class PBProperties * PBPropertyValue::GetProperties |
( |
| ) |
const |
|
inline |
Definition at line 172 of file PBProperties.h.
173 {
175 return m_uValue.Properties;
176 }
◆ GetRaw()
void * PBPropertyValue::GetRaw |
( |
| ) |
const |
|
inline |
Definition at line 123 of file PBProperties.h.
124 {
125 return m_uValue.Pointer;
126 }
◆ GetString()
const TCHAR * PBPropertyValue::GetString |
( |
| ) |
const |
|
inline |
Definition at line 158 of file PBProperties.h.
159 {
161 return m_uValue.String;
162 }
◆ GetType()
Type PBPropertyValue::GetType |
( |
| ) |
const |
|
inline |
◆ GetUINT32()
TUINT32 PBPropertyValue::GetUINT32 |
( |
| ) |
const |
|
inline |
Definition at line 146 of file PBProperties.h.
147 {
149 return m_uValue.UInt32;
150 }
◆ GetUINT32Pointer()
TUINT32 * PBPropertyValue::GetUINT32Pointer |
( |
| ) |
|
|
inline |
Definition at line 214 of file PBProperties.h.
215 {
217 return &m_uValue.UInt32;
218 }
◆ operator=() [1/7]
Definition at line 1085 of file PBProperties.h.
1086{
1087 Delete();
1088
1089 m_eType = other.m_eType;
1090
1092 m_uValue.Array =
new PBPropertyValueArray( *other.m_uValue.
Array );
1094 m_uValue.Properties =
new PBProperties( *other.m_uValue.
Properties );
1097 else
1098 m_uValue = other.m_uValue;
1099
1100 return *this;
1101}
◆ operator=() [2/7]
PBPropertyValue & PBPropertyValue::operator= |
( |
const Toshi::TString8 & | a_sValue | ) |
|
|
inline |
Definition at line 273 of file PBProperties.h.
274 {
276
277 Delete();
278
279 m_uValue.String =
new TCHAR[ a_sValue.Length() + 1 ];
280 Toshi::TStringManager::String8Copy( m_uValue.String, a_sValue );
281 return *this;
282 }
◆ operator=() [3/7]
Definition at line 1103 of file PBProperties.h.
1104{
1105 Delete();
1106
1107 m_eType = other.m_eType;
1108 m_uValue.Pointer = other.m_uValue.
Pointer;
1110
1111 return *this;
1112}
◆ operator=() [4/7]
Definition at line 252 of file PBProperties.h.
253 {
255 m_uValue.Bool = a_bValue;
256 return *this;
257 }
◆ operator=() [5/7]
Definition at line 259 of file PBProperties.h.
260 {
262 m_uValue.Float = a_fValue;
263 return *this;
264 }
◆ operator=() [6/7]
Definition at line 245 of file PBProperties.h.
246 {
248 m_uValue.Int = a_iValue;
249 return *this;
250 }
◆ operator=() [7/7]
Definition at line 266 of file PBProperties.h.
267 {
269 m_uValue.UInt32 = a_uiValue;
270 return *this;
271 }
◆ SetBool()
void PBPropertyValue::SetBool |
( |
TBOOL | a_bValue | ) |
|
|
inline |
Definition at line 225 of file PBProperties.h.
226 {
228 }
PBPropertyValue & operator=(TINT a_iValue)
◆ SetFloat()
void PBPropertyValue::SetFloat |
( |
TFLOAT | a_fValue | ) |
|
|
inline |
◆ SetInt()
void PBPropertyValue::SetInt |
( |
TINT | a_iValue | ) |
|
|
inline |
◆ SetString()
void PBPropertyValue::SetString |
( |
const Toshi::TString8 & | a_sValue | ) |
|
|
inline |
◆ SetUINT32()
void PBPropertyValue::SetUINT32 |
( |
TUINT32 | a_uiValue | ) |
|
|
inline |
◆ PPropertiesWriter
◆ Array
◆ Bool
TBOOL PBPropertyValue::Bool |
◆ Float
◆ Int
TINT PBPropertyValue::Int |
◆ Pointer
void* PBPropertyValue::Pointer |
◆ Properties
◆ String
TCHAR* PBPropertyValue::String |
◆ UInt32
The documentation for this class was generated from the following file:
- D:/_dev/OpenBarnyard/Source/Toshi/Source/Plugins/PPropertyParser/PBProperties.h