summaryrefslogtreecommitdiff
path: root/lib/persistance.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-04-28 13:55:05 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-11-07 16:41:37 +0000
commitfc4ee249e0e4dd1b904080c817153e61c670acb1 (patch)
tree090e498888a928c374e08244c63e68e938c4269b /lib/persistance.h
parentSimplify object creation code (diff)
downloadilt-fc4ee249e0e4dd1b904080c817153e61c670acb1.tar.bz2
ilt-fc4ee249e0e4dd1b904080c817153e61c670acb1.tar.xz
ilt-fc4ee249e0e4dd1b904080c817153e61c670acb1.zip
Tidy case of function names
Diffstat (limited to 'lib/persistance.h')
-rw-r--r--lib/persistance.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/lib/persistance.h b/lib/persistance.h
index 866be51..32e5cb2 100644
--- a/lib/persistance.h
+++ b/lib/persistance.h
@@ -27,13 +27,13 @@ namespace Persistanace {
virtual ~Selection() = default;
DEFAULT_MOVE_COPY(Selection);
- virtual void operator()(float &);
- virtual void operator()(bool &);
- virtual void operator()(const std::nullptr_t &);
- virtual void operator()(std::string &);
- virtual void BeginArray(Stack &);
- virtual void BeginObject(Stack &);
- virtual void EndObject(Stack &);
+ virtual void setValue(float &);
+ virtual void setValue(bool &);
+ virtual void setValue(const std::nullptr_t &);
+ virtual void setValue(std::string &);
+ virtual void beginArray(Stack &);
+ virtual void beginObject(Stack &);
+ virtual void endObject(Stack &);
virtual void beforeValue(Stack &);
virtual SelectionPtr select(const std::string &);
@@ -50,7 +50,7 @@ namespace Persistanace {
}
void
- operator()(T & evalue) override
+ setValue(T & evalue) override
{
std::swap(v, evalue);
}
@@ -107,7 +107,7 @@ namespace Persistanace {
explicit SelectionT(V & value) : v {value} { }
void
- BeginArray(Stack & stk) override
+ beginArray(Stack & stk) override
{
stk.push(make_s<Members>(v));
}
@@ -138,7 +138,7 @@ namespace Persistanace {
explicit SelectionT(V & value) : v {value} { }
void
- BeginArray(Stack & stk) override
+ beginArray(Stack & stk) override
{
stk.push(make_s<Members>(v));
}
@@ -174,7 +174,7 @@ namespace Persistanace {
}
void
- operator()(std::string & type) override
+ setValue(std::string & type) override
{
auto no = Persistable::callFactory(type);
if (dynamic_cast<T *>(no.get())) {
@@ -215,7 +215,7 @@ namespace Persistanace {
}
void
- EndObject(Stack & stk) override
+ endObject(Stack & stk) override
{
if (!v) {
if constexpr (std::is_abstract_v<T>) {
@@ -239,19 +239,19 @@ namespace Persistanace {
}
void
- operator()(const std::nullptr_t &) override
+ setValue(const std::nullptr_t &) override
{
v.reset();
}
void
- BeginObject(Stack & stk) override
+ beginObject(Stack & stk) override
{
stk.push(make_s<SelectionObj>(v));
}
void
- EndObject(Stack & stk) override
+ endObject(Stack & stk) override
{
stk.pop();
}