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

#include <snapshot.hpp>

Inheritance diagram for sysio::chain::snapshot_reader:

Classes

class  section_reader
 

Public Member Functions

template<typename F >
void read_section (const std::string &section_name, F f)
 
template<typename T , typename F >
void read_section (F f)
 
template<typename T >
bool has_section (const std::string &suffix=std::string())
 
virtual void validate () const =0
 
virtual void return_to_header ()=0
 
virtual ~snapshot_reader ()
 

Protected Member Functions

virtual bool has_section (const std::string &section_name)=0
 
virtual void set_section (const std::string &section_name)=0
 
virtual bool read_row (detail::abstract_snapshot_row_reader &row_reader)=0
 
virtual bool empty ()=0
 
virtual void clear_section ()=0
 

Detailed Description

Definition at line 224 of file snapshot.hpp.

Constructor & Destructor Documentation

◆ ~snapshot_reader()

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

Definition at line 284 of file snapshot.hpp.

284{};

Member Function Documentation

◆ clear_section()

virtual void sysio::chain::snapshot_reader::clear_section ( )
protectedpure virtual

Implemented in sysio::chain::istream_snapshot_reader, and sysio::chain::variant_snapshot_reader.

Here is the caller graph for this function:

◆ empty()

virtual bool sysio::chain::snapshot_reader::empty ( )
protectedpure virtual

Implemented in sysio::chain::istream_snapshot_reader, and sysio::chain::variant_snapshot_reader.

Here is the caller graph for this function:

◆ has_section() [1/2]

virtual bool sysio::chain::snapshot_reader::has_section ( const std::string & section_name)
protectedpure virtual

◆ has_section() [2/2]

template<typename T >
bool sysio::chain::snapshot_reader::has_section ( const std::string & suffix = std::string())
inline

Definition at line 276 of file snapshot.hpp.

276 {
278 }
bool has_section(const std::string &suffix=std::string())
Definition snapshot.hpp:276
Here is the call graph for this function:
Here is the caller graph for this function:

◆ read_row()

virtual bool sysio::chain::snapshot_reader::read_row ( detail::abstract_snapshot_row_reader & row_reader)
protectedpure virtual

Implemented in sysio::chain::istream_snapshot_reader, and sysio::chain::variant_snapshot_reader.

Here is the caller graph for this function:

◆ read_section() [1/2]

template<typename F >
void sysio::chain::snapshot_reader::read_section ( const std::string & section_name,
F f )
inline

Definition at line 263 of file snapshot.hpp.

263 {
264 set_section(section_name);
265 auto section = section_reader(*this);
266 f(section);
268 }
virtual void clear_section()=0
virtual void set_section(const std::string &section_name)=0
Here is the call graph for this function:
Here is the caller graph for this function:

◆ read_section() [2/2]

template<typename T , typename F >
void sysio::chain::snapshot_reader::read_section ( F f)
inline

Definition at line 271 of file snapshot.hpp.

271 {
273 }
void read_section(const std::string &section_name, F f)
Definition snapshot.hpp:263
Here is the call graph for this function:

◆ return_to_header()

virtual void sysio::chain::snapshot_reader::return_to_header ( )
pure virtual

◆ set_section()

virtual void sysio::chain::snapshot_reader::set_section ( const std::string & section_name)
protectedpure virtual

Implemented in sysio::chain::istream_snapshot_reader, and sysio::chain::variant_snapshot_reader.

Here is the caller graph for this function:

◆ validate()

virtual void sysio::chain::snapshot_reader::validate ( ) const
pure virtual

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