9 class __declspec(dllexport) GenericDataStructVector :
public GenericDataStruct
13 GenericDataStructVector();
14 GenericDataStructVector(
const GenericDataStructVector& _other);
15 GenericDataStructVector(GenericDataStructVector&& _other)
noexcept;
17 GenericDataStructVector(
const std::vector<ot::Variable>& _values);
18 GenericDataStructVector(std::vector<ot::Variable>&& _values)
noexcept;
19 GenericDataStructVector(uint32_t _numberOfEntries);
21 GenericDataStructVector& operator=(
const GenericDataStructVector& _other) =
default;
22 GenericDataStructVector& operator=(GenericDataStructVector&& _other)
noexcept =
default;
24 ot::Variable getValue(uint32_t _index) { assert(_index < m_numberOfEntries);
return m_values[_index]; };
25 const std::vector<ot::Variable>& getValues()
const {
return m_values; }
27 void setValue(uint32_t _index,
const ot::Variable& _value);
29 void setValues(
const std::vector<ot::Variable>& _values);
30 void setValues(std::vector<ot::Variable>&& _values);
35 static std::string getClassName() {
return "GenericDataStructVector"; }
37 std::vector<ot::Variable> m_values;
39 void allocateValueMemory();
Definition Variable.h:107
rapidjson::Value JsonValue
Writable JSON value.
Definition JSON.h:27
rapidjson::GenericObject< true, rapidjson::GenericValue< rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator< rapidjson::CrtAllocator > > > ConstJsonObject
Read only JSON Object.
Definition JSON.h:35
rapidjson::MemoryPoolAllocator< rapidjson::CrtAllocator > JsonAllocator
Allocator used for writing to JSON values.
Definition JSON.h:30