10Duke Scale C++ Client
Loading...
Searching...
No Matches
JSONArray.h
1#ifndef TENDUKE_JSON_JSONARRAY_H
2#define TENDUKE_JSON_JSONARRAY_H
3
4#include "./JSONElement.h"
5
6#include <memory>
7#include <cstddef>
8#include <vector>
9
10namespace tenduke { namespace json {
11
15class JSONArray : public virtual JSONElement
16{
17public:
18 ~JSONArray() override = default;
19
24 virtual bool isEmpty() const = 0;
25
30 virtual std::size_t getSize() const = 0;
31
36 virtual const std::vector<std::shared_ptr<JSONElement>> & getValues() const = 0;
37};
38
39}}
40
41#endif // TENDUKE_JSON_JSONARRAY_H
A JSON array.
Definition JSONArray.h:16
virtual std::size_t getSize() const =0
Returns number of elements in the array.
virtual bool isEmpty() const =0
Checks if the array is empty.
virtual const std::vector< std::shared_ptr< JSONElement > > & getValues() const =0
Returns the elements of the array.
Superclass of JSON elements.
Definition JSONElement.h:12
JSON support.
Definition JSONArray.h:10
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7