BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
ModelView::JsonItemConverterInterface Class Referenceabstract

Base class for all converters of SessionItem to/from JSON object. More...

Inheritance diagram for ModelView::JsonItemConverterInterface:
[legend]

Public Member Functions

virtual ~JsonItemConverterInterface ()=default
 
virtual std::unique_ptr< SessionItemfrom_json (const QJsonObject &) const =0
 Creates item from JSON. More...
 
virtual QJsonObject to_json (const SessionItem *item) const =0
 Converts item to JSON. More...
 

Detailed Description

Base class for all converters of SessionItem to/from JSON object.

Definition at line 29 of file jsonitemconverterinterface.h.

Constructor & Destructor Documentation

◆ ~JsonItemConverterInterface()

virtual ModelView::JsonItemConverterInterface::~JsonItemConverterInterface ( )
virtualdefault

Member Function Documentation

◆ from_json()

virtual std::unique_ptr<SessionItem> ModelView::JsonItemConverterInterface::from_json ( const QJsonObject &  ) const
pure virtual

Creates item from JSON.

Implemented in ModelView::JsonItemConverter.

◆ to_json()

virtual QJsonObject ModelView::JsonItemConverterInterface::to_json ( const SessionItem item) const
pure virtual

Converts item to JSON.

Implemented in ModelView::JsonItemConverter.


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