[DEV] update new etk Uri API
This commit is contained in:
parent
7fe6b15b23
commit
871da9506a
@ -16,7 +16,7 @@ static void readFromFile() {
|
|||||||
ejson::Document doc;
|
ejson::Document doc;
|
||||||
//! [ejson_sample_declare_doc]
|
//! [ejson_sample_declare_doc]
|
||||||
//! [ejson_sample_read_file]
|
//! [ejson_sample_read_file]
|
||||||
bool retParse = doc.load("DATA:///read.json");
|
bool retParse = doc.load(etk::Uri("DATA:///read.json"));
|
||||||
//! [ejson_sample_read_file]
|
//! [ejson_sample_read_file]
|
||||||
TEST_INFO("parse ret = " << retParse);
|
TEST_INFO("parse ret = " << retParse);
|
||||||
TEST_INFO("Debug display of the tree:");
|
TEST_INFO("Debug display of the tree:");
|
||||||
@ -76,7 +76,7 @@ static void readFromString2() {
|
|||||||
static void readFull() {
|
static void readFull() {
|
||||||
ejson::Document doc;
|
ejson::Document doc;
|
||||||
TEST_INFO("parse");
|
TEST_INFO("parse");
|
||||||
bool retParse = doc.load("DATA:///read.json");
|
bool retParse = doc.load(etk::Uri("DATA:///read.json"));
|
||||||
TEST_INFO("parse ret = " << retParse);
|
TEST_INFO("parse ret = " << retParse);
|
||||||
TEST_INFO("Debug display of the tree:");
|
TEST_INFO("Debug display of the tree:");
|
||||||
doc.display();
|
doc.display();
|
||||||
|
@ -16,10 +16,10 @@ static void writeToFile() {
|
|||||||
doc.add("D", ejson::Array());
|
doc.add("D", ejson::Array());
|
||||||
TEST_INFO("store");
|
TEST_INFO("store");
|
||||||
//! [ejson_sample_write_file]
|
//! [ejson_sample_write_file]
|
||||||
bool retGenerate = doc.store("generate.json");
|
bool retGenerate = doc.store(etk::Path("generate.json"));
|
||||||
//! [ejson_sample_write_file]
|
//! [ejson_sample_write_file]
|
||||||
//! [ejson_sample_write_file_safe_mode]
|
//! [ejson_sample_write_file_safe_mode]
|
||||||
retGenerate = doc.storeSafe("generate.json");
|
retGenerate = doc.storeSafe(etk::Path("generate.json"));
|
||||||
//! [ejson_sample_write_file_safe_mode]
|
//! [ejson_sample_write_file_safe_mode]
|
||||||
TEST_INFO("parse ret = " << retGenerate);
|
TEST_INFO("parse ret = " << retGenerate);
|
||||||
TEST_INFO("Debug display of the tree:");
|
TEST_INFO("Debug display of the tree:");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user