Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysio::chain::snapshot_writer Class Referenceabstract

#include <snapshot.hpp>

Inheritance diagram for sysio::chain::snapshot_writer:

Classes

class  section_writer
 

Public Member Functions

template<typename F >
void write_section (const std::string section_name, F f)
 
template<typename T , typename F >
void write_section (F f)
 
virtual ~snapshot_writer ()
 

Protected Member Functions

virtual void write_start_section (const std::string &section_name)=0
 
virtual void write_row (const detail::abstract_snapshot_row_writer &row_writer)=0
 
virtual void write_end_section ()=0
 

Detailed Description

Definition at line 115 of file snapshot.hpp.

Constructor & Destructor Documentation

◆ ~snapshot_writer()

virtual sysio::chain::snapshot_writer::~snapshot_writer ( )
inlinevirtual

Definition at line 147 of file snapshot.hpp.

147{};

Member Function Documentation

◆ write_end_section()

virtual void sysio::chain::snapshot_writer::write_end_section ( )
protectedpure virtual

◆ write_row()

virtual void sysio::chain::snapshot_writer::write_row ( const detail::abstract_snapshot_row_writer & row_writer)
protectedpure virtual

◆ write_section() [1/2]

template<typename F >
void sysio::chain::snapshot_writer::write_section ( const std::string section_name,
F f )
inline

Definition at line 135 of file snapshot.hpp.

135 {
136 write_start_section(section_name);
137 auto section = section_writer(*this);
138 f(section);
140 }
virtual void write_start_section(const std::string &section_name)=0
virtual void write_end_section()=0
Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_section() [2/2]

template<typename T , typename F >
void sysio::chain::snapshot_writer::write_section ( F f)
inline

Definition at line 143 of file snapshot.hpp.

143 {
145 }
void write_section(const std::string section_name, F f)
Definition snapshot.hpp:135
Here is the call graph for this function:

◆ write_start_section()

virtual void sysio::chain::snapshot_writer::write_start_section ( const std::string & section_name)
protectedpure virtual

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