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

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

#include <structs.h>

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

Public Attributes

CppUtilities::DateTime dt = CppUtilities::DateTime::fromDateAndTime(2017, 4, 2, 15, 31, 21, 165.125)
CppUtilities::TimeSpan ts = CppUtilities::TimeSpan::fromHours(3.25) + CppUtilities::TimeSpan::fromSeconds(19.125)

Detailed Description

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

This is asserted in JsonGeneratorTests::testCustomSerialization();

Definition at line 101 of file structs.h.

Member Data Documentation

◆ dt

CppUtilities::DateTime StructWithCustomTypes::dt = CppUtilities::DateTime::fromDateAndTime(2017, 4, 2, 15, 31, 21, 165.125)

Definition at line 102 of file structs.h.

◆ ts

CppUtilities::TimeSpan StructWithCustomTypes::ts = CppUtilities::TimeSpan::fromHours(3.25) + CppUtilities::TimeSpan::fromSeconds(19.125)

Definition at line 103 of file structs.h.


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