reference: ValueRef

git-svn-id: svn://ultimatepp.org/upp/trunk@7678 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-09-13 13:04:37 +00:00
parent 1f45c48921
commit ad4141809b
3 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,15 @@
#include <Core/Core.h>
using namespace Upp;
CONSOLE_APP_MAIN
{
StdLogSetup(LOG_FILE|LOG_COUT);
Value v;
for(int i = 0; i < 3; i++) {
Value& p = v.At(i)("person");
p("name") = "Name" + AsString(i + 1);
p("lastname") = "LastName" + AsString(i + 1);
}
LOG(AsJSON(v));
}

View file

@ -0,0 +1,11 @@
description "Demonstrates Value referencing/mutating operations\377";
uses
Core;
file
ValueRef.cpp;
mainconfig
"" = "SSE2";

4
reference/ValueRef/init Normal file
View file

@ -0,0 +1,4 @@
#ifndef _ValueRef_icpp_init_stub
#define _ValueRef_icpp_init_stub
#include "Core/init"
#endif