10Duke Scale C++ Client
All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
Filter.h
1#ifndef TENDUKE_SE_FILTER_H
2#define TENDUKE_SE_FILTER_H
3
4#include <string>
5#include <utility>
6
7namespace tenduke { namespace se {
8
12class Filter
13{
14public:
21 std::string name,
22 std::string value
23 ) : name(std::move(name))
24 , value(std::move(value))
25 {}
26
31 : Filter("", "")
32 {}
33
38 bool isEmpty() const
39 {
40 return name.empty();
41 }
42
43public:
45 const std::string name;
47 const std::string value;
48};
49
50}}
51
52#endif //TENDUKE_SE_FILTER_H
Filter-definition for the REST-API.
Definition Filter.h:13
Filter(std::string name, std::string value)
Constructs new instance.
Definition Filter.h:20
const std::string name
Field name to filter.
Definition Filter.h:45
bool isEmpty() const
Checks if the filter is empty.
Definition Filter.h:38
Filter()
Constructs new empty instance.
Definition Filter.h:30
const std::string value
Value to filter with.
Definition Filter.h:47
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7