diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-04-28 13:55:05 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-11-07 16:41:37 +0000 |
commit | fc4ee249e0e4dd1b904080c817153e61c670acb1 (patch) | |
tree | 090e498888a928c374e08244c63e68e938c4269b /lib/jsonParse-persistance.cpp | |
parent | Simplify object creation code (diff) | |
download | ilt-fc4ee249e0e4dd1b904080c817153e61c670acb1.tar.bz2 ilt-fc4ee249e0e4dd1b904080c817153e61c670acb1.tar.xz ilt-fc4ee249e0e4dd1b904080c817153e61c670acb1.zip |
Tidy case of function names
Diffstat (limited to 'lib/jsonParse-persistance.cpp')
-rw-r--r-- | lib/jsonParse-persistance.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/lib/jsonParse-persistance.cpp b/lib/jsonParse-persistance.cpp index 00b84dd..100fa5c 100644 --- a/lib/jsonParse-persistance.cpp +++ b/lib/jsonParse-persistance.cpp @@ -10,69 +10,69 @@ namespace Persistanace { } void - JsonParsePersistance::BeginObject() + JsonParsePersistance::beginObject() { current()->beforeValue(stk); - current()->BeginObject(stk); + current()->beginObject(stk); } void - JsonParsePersistance::BeginArray() + JsonParsePersistance::beginArray() { current()->beforeValue(stk); - current()->BeginArray(stk); + current()->beginArray(stk); } void - JsonParsePersistance::PushBoolean(bool value) + JsonParsePersistance::pushBoolean(bool value) { - PushValue(value); + pushValue(value); } void - JsonParsePersistance::PushNumber(float value) + JsonParsePersistance::pushNumber(float value) { - PushValue(value); + pushValue(value); } void - JsonParsePersistance::PushNull() + JsonParsePersistance::pushNull() { - PushValue(nullptr); + pushValue(nullptr); } void - JsonParsePersistance::PushText(std::string && value) + JsonParsePersistance::pushText(std::string && value) { - PushValue(value); + pushValue(value); } void - JsonParsePersistance::PushKey(std::string && k) + JsonParsePersistance::pushKey(std::string && k) { stk.push(current()->select(k)); } void - JsonParsePersistance::EndArray() + JsonParsePersistance::endArray() { stk.pop(); stk.pop(); } void - JsonParsePersistance::EndObject() + JsonParsePersistance::endObject() { - current()->EndObject(stk); - current()->EndObject(stk); + current()->endObject(stk); + current()->endObject(stk); } template<typename T> inline void - JsonParsePersistance::PushValue(T && value) + JsonParsePersistance::pushValue(T && value) { current()->beforeValue(stk); - (*current())(value); + current()->setValue(value); stk.pop(); } |