Inviwo  0.9.10.1
Inviwo documentation
inviwo::TemplatePropertyJSONConverter< SrcProperty > Class Template Reference

#include <propertyjsonconverter.h>

+ Inheritance diagram for inviwo::TemplatePropertyJSONConverter< SrcProperty >:

Public Member Functions

virtual std::string getPropClassIdentifier () const override
 
virtual void toJSON (json &j, const Property &p) const override
 
virtual void fromJSON (const json &j, Property &p) const override
 

Detailed Description

template<typename SrcProperty>
class inviwo::TemplatePropertyJSONConverter< SrcProperty >

Convert between JSON and Property. A TemplatePropertyJSONConverter requires implementations of to_json(json& j, const SrcProperty& p) and from_json(const json& j, SrcProperty& p).

Member Function Documentation

◆ fromJSON()

template<typename SrcProperty >
virtual void inviwo::TemplatePropertyJSONConverter< SrcProperty >::fromJSON ( const json &  j,
Property p 
) const
inlineoverridevirtual

Converts a JSON object to a Property to a JSON object. Requires that to_json(json& j, const SrcProperty& p) has been implemented.

Implements inviwo::PropertyJSONConverter.

◆ toJSON()

template<typename SrcProperty >
virtual void inviwo::TemplatePropertyJSONConverter< SrcProperty >::toJSON ( json &  j,
const Property p 
) const
inlineoverridevirtual

Converts a Property to a JSON object. Requires that to_json(json& j, const SrcProperty& p) has been implemented.

Implements inviwo::PropertyJSONConverter.


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