GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Public Member Functions | List of all members
gd::SerializerValue Class Reference

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
 
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.
 

Detailed Description

A value stored inside a gd::SerializerElement.

See also
gd::Serializer
gd::SerializerElement

Member Function Documentation

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.

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.


The documentation for this class was generated from the following files: