Fledge
An open source edge computing platform for industrial users
purge_result.h
1 #ifndef _PURGE_RESULT_H
2 #define _PURGE_RESULT_H
3 /*
4  * Fledge storage client.
5  *
6  * Copyright (c) 2018 Dianomic Systems
7  *
8  * Released under the Apache 2.0 Licence
9  *
10  * Author: Mark Riddoch
11  */
12 #include <string>
13 #include <string.h>
14 #include <sstream>
15 #include <iostream>
16 #include <reading.h>
17 #include <rapidjson/document.h>
18 #include <vector>
19 
22 class PurgeResult {
23  public:
24  PurgeResult() : m_removed(0), m_unsentPurged(0), m_unsentRetained(0),
25  m_remaining(0) {};
26  PurgeResult(const std::string& json);
27  unsigned long getRemoved() const { return m_removed; };
28  unsigned long getUnsentPurged() const { return m_unsentPurged; };
29  unsigned long getUnsentRetained() const { return m_unsentRetained; };
30  unsigned long getRemaining() const { return m_remaining; };
31  private:
32  unsigned long m_removed;
33  unsigned long m_unsentPurged;
34  unsigned long m_unsentRetained;
35  unsigned long m_remaining;
36 
37 };
38 
39 #endif
Definition: purge_result.h:22