![]()  | 
  
    GDevelop Core
    
   Core library for developing platforms and tools compatible with GDevelop. 
   | 
 
A value stored inside a gd::SerializerElement. More...
#include <SerializerValue.h>
Public Member Functions | |
| SerializerValue (bool val) | |
| SerializerValue (const gd::String &val) | |
| SerializerValue (int val) | |
| SerializerValue (double val) | |
| void | SetBool (bool val) | 
| void | SetString (const gd::String &val) | 
| void | SetInt (int val) | 
| void | SetDouble (double val) | 
| void | Set (const gd::String &val) | 
| bool | GetBool () const | 
| gd::String | GetString () const | 
| const gd::String & | GetRawString () const | 
| int | GetInt () const | 
| double | GetDouble () const | 
| bool | IsBoolean () const | 
| Return true if the value is a boolean.  | |
| bool | IsString () const | 
| Return true if the value is a string.  | |
| bool | IsInt () const | 
| Return true if the value is an int.  | |
| bool | IsDouble () const | 
| Return true if the value is a double.  | |
A value stored inside a gd::SerializerElement.
| bool gd::SerializerValue::GetBool | ( | ) | const | 
Get the value, its type being a boolean.
| double gd::SerializerValue::GetDouble | ( | ) | const | 
Get the value, its type being a double
| int gd::SerializerValue::GetInt | ( | ) | const | 
Get the value, its type being an int.
      
  | 
  inline | 
Get the string value, without attempting any conversion. Make sure to check that IsString is true beforehand.
| gd::String gd::SerializerValue::GetString | ( | ) | const | 
Get the value, its type being a gd::String.
| void gd::SerializerValue::Set | ( | const gd::String & | val | ) | 
Set the value, its type being unknown, but representable as a string.
| void gd::SerializerValue::SetBool | ( | bool | val | ) | 
Set the value, its type being a boolean.
| void gd::SerializerValue::SetDouble | ( | double | val | ) | 
Set the value, its type being a double.
| void gd::SerializerValue::SetInt | ( | int | val | ) | 
Set the value, its type being an integer.
| void gd::SerializerValue::SetString | ( | const gd::String & | val | ) | 
Set the value, its type being a gd::String.