Sync.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2022 Robin Davies
|
||||
// Copyright (c) 2026 Robin Davies
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
// this software and associated documentation files (the "Software"), to deal in
|
||||
@@ -57,6 +57,25 @@
|
||||
} \
|
||||
;
|
||||
|
||||
|
||||
#define JSON_GETTER_SETTER_REF(name) \
|
||||
const decltype(name##_) &name() const { return name##_; } \
|
||||
decltype(name##_) &name() { return name##_; } \
|
||||
void name(const decltype(name##_) &value) { name##_ = value; }
|
||||
|
||||
#define JSON_GETTER_SETTER(name) \
|
||||
decltype(name##_) name() const { return name##_; } \
|
||||
void name(decltype(name##_) value) { name##_ = value; }
|
||||
|
||||
|
||||
#define JSON_GETTER_REF(name) \
|
||||
const decltype(name##_) &name() const { return name##_; } \
|
||||
decltype(name##_) &name() { return name##_; }
|
||||
|
||||
#define JSON_GETTER(name) \
|
||||
decltype(name##_) name() const { return name##_; }
|
||||
|
||||
|
||||
namespace pipedal
|
||||
{
|
||||
class JsonException: public std::runtime_error {
|
||||
|
||||
@@ -124,5 +124,7 @@ namespace pipedal
|
||||
|
||||
std::string ToLower(const std::string&value);
|
||||
|
||||
std::string safeFilenameToString(const std::string &filename);
|
||||
std::string stringToSafeFilename(const std::string &name);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user