[DEV] update new etk Uri API

This commit is contained in:
Edouard DUPIN 2018-10-23 22:19:31 +02:00
parent 7fe6b15b23
commit 871da9506a
2 changed files with 4 additions and 4 deletions

View File

@ -16,7 +16,7 @@ static void readFromFile() {
ejson::Document doc;
//! [ejson_sample_declare_doc]
//! [ejson_sample_read_file]
bool retParse = doc.load("DATA:///read.json");
bool retParse = doc.load(etk::Uri("DATA:///read.json"));
//! [ejson_sample_read_file]
TEST_INFO("parse ret = " << retParse);
TEST_INFO("Debug display of the tree:");
@ -76,7 +76,7 @@ static void readFromString2() {
static void readFull() {
ejson::Document doc;
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("Debug display of the tree:");
doc.display();

View File

@ -16,10 +16,10 @@ static void writeToFile() {
doc.add("D", ejson::Array());
TEST_INFO("store");
//! [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_safe_mode]
retGenerate = doc.storeSafe("generate.json");
retGenerate = doc.storeSafe(etk::Path("generate.json"));
//! [ejson_sample_write_file_safe_mode]
TEST_INFO("parse ret = " << retGenerate);
TEST_INFO("Debug display of the tree:");