Blender  V3.3
Public Member Functions | List of all members
blender::io::serialize::Formatter Class Referenceabstract

#include <BLI_serialize.hh>

Inheritance diagram for blender::io::serialize::Formatter:
blender::io::serialize::JsonFormatter

Public Member Functions

virtual ~Formatter ()=default
 
virtual void serialize (std::ostream &os, const Value &value)=0
 
virtual std::unique_ptr< Valuedeserialize (std::istream &is)=0
 

Detailed Description

Interface for any provided Formatter.

Definition at line 288 of file BLI_serialize.hh.

Constructor & Destructor Documentation

◆ ~Formatter()

virtual blender::io::serialize::Formatter::~Formatter ( )
virtualdefault

Member Function Documentation

◆ deserialize()

virtual std::unique_ptr<Value> blender::io::serialize::Formatter::deserialize ( std::istream &  is)
pure virtual

Deserialize the stream.

Implemented in blender::io::serialize::JsonFormatter.

◆ serialize()

virtual void blender::io::serialize::Formatter::serialize ( std::ostream &  os,
const Value value 
)
pure virtual

Serialize the value to the given stream.

Implemented in blender::io::serialize::JsonFormatter.


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