Ditto 4.13.1
 
Loading...
Searching...
No Matches
MutableCounter.hpp
1
2#ifndef DITTO_MUTABLE_COUNTER_H
3#define DITTO_MUTABLE_COUNTER_H
4
5#include "Counter.hpp"
6#include "MutableDocumentPath.hpp"
7#include "json.hpp"
8
9namespace ditto {
10
15class DITTO_DEPRECATED_BECAUSE(
16 "Use DQL (Ditto Query Language) instead. For more information see: "
17 "https://ditto.com/link/legacy-to-dql-guide") MutableCounter
18 : public Counter {
19 DITTO_DISABLE_DEPRECATED_WARNINGS("The legacy query API is deprecated")
20
21 friend class MutableDocumentPath;
22
23public:
30 void increment(double amount);
31
32private:
33 MutableCounter(const nlohmann::json &info, MutableDocumentPath doc_path);
34 MutableDocumentPath doc_path;
35
36 DITTO_REENABLE_WARNINGS
37};
38} // namespace ditto
39
40#endif
void increment(double amount)
increment the value of the counter by the given amount
Namespace for the Ditto C++ SDK types and functions.
Definition AbstractDocumentPath.hpp:19