10Duke Enterprise C++ SDK
Toggle main menu visibility
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
10
namespace
tenduke
{
namespace
json
{
11
15
class
JSONArray
:
public
virtual
JSONElement
16
{
17
public
:
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
tenduke::json::JSONArray
A JSON array.
Definition
JSONArray.h:16
tenduke::json::JSONArray::getSize
virtual std::size_t getSize() const =0
Returns number of elements in the array.
tenduke::json::JSONArray::isEmpty
virtual bool isEmpty() const =0
Checks if the array is empty.
tenduke::json::JSONArray::getValues
virtual const std::vector< std::shared_ptr< JSONElement > > & getValues() const =0
Returns the elements of the array.
tenduke::json::JSONElement
Superclass of JSON elements.
Definition
JSONElement.h:12
tenduke::json
JSON support.
Definition
JSONArray.h:10
tenduke
Root for classes, functions and globals of 10Duke C++ Client.
Definition
APIRequest.h:4
core
core
src
json
JSONArray.h
Generated by
1.17.0