Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
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
 
- Public Member Functions inherited from inviwo::PropertyJSONConverter

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.

◆ getPropClassIdentifier()

template<typename SrcProperty >
virtual std::string inviwo::TemplatePropertyJSONConverter< SrcProperty >::getPropClassIdentifier ( ) const
inlineoverridevirtual

◆ 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 files: