Is a simple C++ class than behave like PHP array. Its made for manipulating strings, so values like integers or float have to be converted to string. Remember that this class is still in very early alpha, so it can be broken in some parts.
here you will find some examples of usage.
This is a very simple assoc array, no multidimension array yet.
Node test;
test["id"] = "1";
test["title"] = "test titile";
output:
id=1
title=test titile
Node test;
test["book"]["1"]["name"] = "1";
test["book"]["1"]["author"] = "John Smith";
output:
book.1.name=1
book.1.author=John Smith
Node test;
test["autoinc"][""] = "0";
test["autoinc"][""] = "1";
test["autoinc"][""] = "2";
test["autoinc"][""] = "3";
output:
autoinc.0=0
autoinc.1=1
autoinc.2=2
autoinc.3=3
//as simple as this
if (test["check"]["if"]["exisits"]) {
//some code here
}
Node test;
test["1"]["Name"] = "2";
test["2"]["Name"] = "2";
if (test["1"] == test["2"]) {
//this code if node equal
}
Node test1;
Node test2;
test1["1"] = "1";
test2 = test1