Jpp master_rocky-44-g75b7c4f75
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 81 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 84 of file JSonSupportkit.hh.

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

◆ 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 89 of file JSonSupportkit.hh.

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

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