Jpp 19.3.0-rc.3
the software that should make you happy
Loading...
Searching...
No Matches
JDATABASE::JSonIO_t< T > Struct Template Reference

Assigment implementation. More...

#include <JSonSupportkit.hh>

Inheritance diagram for JDATABASE::JSonIO_t< T >:
JDATABASE::JSonIO

Public Member Functions

virtual void to_json (json &js, const void *p) const override
 
virtual void from_json (const json &js, void *p) const override
 

Detailed Description

template<class T>
struct JDATABASE::JSonIO_t< T >

Assigment implementation.

Definition at line 82 of file JSonSupportkit.hh.

Member Function Documentation

◆ to_json()

template<class T >
virtual void JDATABASE::JSonIO_t< T >::to_json ( json & js,
const void * p ) const
inlineoverridevirtual

Implements JDATABASE::JSonIO.

Definition at line 85 of file JSonSupportkit.hh.

86 {
87 js = * (const T*) p;
88 }

◆ from_json()

template<class T >
virtual void JDATABASE::JSonIO_t< T >::from_json ( const json & js,
void * p ) const
inlineoverridevirtual

Implements JDATABASE::JSonIO.

Definition at line 90 of file JSonSupportkit.hh.

91 {
92 * (T*) p = js;
93 }

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