Fledge
An open source edge computing platform for industrial users
aggregate.h
1 #ifndef _AGGREGRATE_H
2 #define _AGGREGRATE_H
3 /*
4  * Fledge storage client.
5  *
6  * Copyright (c) 2018 OSisoft, LLC
7  *
8  * Released under the Apache 2.0 Licence
9  *
10  * Author: Mark Riddoch
11  */
12 #include <string>
13 
14 
18 class Aggregate {
19  public:
20  Aggregate(const std::string& operation, const std::string& column) :
21  m_column(column), m_operation(operation) {};
22  ~Aggregate() {};
23  std::string toJSON();
24  private:
25  const std::string m_column;
26  const std::string m_operation;
27 };
28 #endif
29 
Aggregate clause in a selection of records.
Definition: aggregate.h:18
std::string toJSON()
Return the JSON payload for a where clause.
Definition: aggregate.cpp:21