Reflection for RapidJSON 0.0.17
Reflection for serializing/deserializing with RapidJSON
Loading...
Searching...
No Matches
TestStruct Struct Reference

The TestStruct struct inherits from JsonSerializable and should hence have functional fromJson() and toJson() methods. More...

#include <structs.h>

Inheritance diagram for TestStruct:
[legend]
Collaboration diagram for TestStruct:
[legend]

Public Attributes

int someInt = 0
size_t someSize = 1
string someString = "foo"
string yetAnotherString = "bar"

Static Public Attributes

static constexpr const char * staticMember = "static members are just ignored"
static int anotherStaticMember

Detailed Description

The TestStruct struct inherits from JsonSerializable and should hence have functional fromJson() and toJson() methods.

This is asserted in JsonGeneratorTests::testIncludingGeneratedHeader();

Definition at line 28 of file structs.h.

Member Data Documentation

◆ anotherStaticMember

int TestStruct::anotherStaticMember
static

Definition at line 34 of file structs.h.

◆ someInt

int TestStruct::someInt = 0

Definition at line 29 of file structs.h.

◆ someSize

size_t TestStruct::someSize = 1

Definition at line 30 of file structs.h.

◆ someString

string TestStruct::someString = "foo"

Definition at line 31 of file structs.h.

◆ staticMember

const char* TestStruct::staticMember = "static members are just ignored"
staticconstexpr

Definition at line 33 of file structs.h.

◆ yetAnotherString

string TestStruct::yetAnotherString = "bar"

Definition at line 32 of file structs.h.


The documentation for this struct was generated from the following file: