ASL
Xdl Struct Reference

Detailed Description

Static functions to encode/decode XDL data.

Var data = Xdl::decode("{x=1.5, y=[1,Y]}"); // decode XDL from a string
static Var decode(const String &xdl)
Decodes the XDL-encoded string into a Var that will contain all the structure.

#include <Xdl.h>

Static Public Member Functions

static Var read (const String &file)
 Reads and decodes data from a file in XDL format.
 
static bool write (const Var &v, const String &file, int mode=Json::NICE)
 Writes a var to a file in XDL format.
 
static Var decode (const String &xdl)
 Decodes the XDL-encoded string into a Var that will contain all the structure. More...
 
static String encode (const Var &v, int mode=Json::SIMPLE)
 Encodes the given Var into an XDL-format representation.
 

Member Function Documentation

◆ decode()

static Var decode ( const String xdl)
static

Decodes the XDL-encoded string into a Var that will contain all the structure.

If there are format parsing errors, the result will be a Var::NONE typed variable.


The documentation for this struct was generated from the following file: