ChirpSim
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros
Functions
jsonhelpers.h File Reference
#include <QPointF>
#include <QJsonObject>
Include dependency graph for jsonhelpers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

QPointF jsonObjectToPoint (const QJsonObject &obj)
 Converts a JSON object containing the attributes "x" and "y" to a QPointF object. More...
 

Function Documentation

QPointF jsonObjectToPoint ( const QJsonObject &  obj)

Converts a JSON object containing the attributes "x" and "y" to a QPointF object.

Parameters
objJSON object with "x" and "y" attributes.
Returns
QPointF containing the x and y coordinates given by obj.

Referenced by chirpFactory(), pushableObjectFactory(), and wallFactory().

Here is the caller graph for this function: