Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysio::chain::protocol_feature_base Class Reference

#include <protocol_feature_manager.hpp>

Inheritance diagram for sysio::chain::protocol_feature_base:
Collaboration diagram for sysio::chain::protocol_feature_base:

Public Member Functions

 protocol_feature_base ()=default
 
 protocol_feature_base (protocol_feature_t feature_type, const digest_type &description_digest, flat_set< digest_type > &&dependencies, const protocol_feature_subjective_restrictions &restrictions)
 
void reflector_init ()
 
protocol_feature_t get_type () const
 

Public Attributes

std::string protocol_feature_type
 
digest_type description_digest
 
flat_set< digest_typedependencies
 
protocol_feature_subjective_restrictions subjective_restrictions
 

Protected Attributes

protocol_feature_t _type
 

Detailed Description

Definition at line 59 of file protocol_feature_manager.hpp.

Constructor & Destructor Documentation

◆ protocol_feature_base() [1/2]

sysio::chain::protocol_feature_base::protocol_feature_base ( )
default

◆ protocol_feature_base() [2/2]

sysio::chain::protocol_feature_base::protocol_feature_base ( protocol_feature_t feature_type,
const digest_type & description_digest,
flat_set< digest_type > && dependencies,
const protocol_feature_subjective_restrictions & restrictions )

Definition at line 286 of file protocol_feature_manager.cpp.

291 ,dependencies( std::move(dependencies) )
292 ,subjective_restrictions( restrictions )
293 ,_type( feature_type )
294 {
295 switch( feature_type ) {
298 break;
299 default:
300 {
301 SYS_THROW( protocol_feature_validation_exception,
302 "Unsupported protocol_feature_t passed to constructor: ${type}",
303 ("type", static_cast<uint32_t>(feature_type)) );
304 }
305 break;
306 }
307 }
#define SYS_THROW(exc_type, FORMAT,...)
protocol_feature_subjective_restrictions subjective_restrictions
unsigned int uint32_t
Definition stdint.h:126

Member Function Documentation

◆ get_type()

protocol_feature_t sysio::chain::protocol_feature_base::get_type ( ) const
inline

Definition at line 70 of file protocol_feature_manager.hpp.

70{ return _type; }

◆ reflector_init()

void sysio::chain::protocol_feature_base::reflector_init ( )

Definition at line 309 of file protocol_feature_manager.cpp.

309 {
311 "protocol_feature_activation expects FC to support reflector_init" );
312
315 } else {
316 SYS_THROW( protocol_feature_validation_exception,
317 "Unsupported protocol feature type: ${type}", ("type", protocol_feature_type) );
318 }
319 }
constexpr bool has_feature_reflector_init_on_unpacked_reflected_types
Definition raw.hpp:440
Here is the caller graph for this function:

Member Data Documentation

◆ _type

protocol_feature_t sysio::chain::protocol_feature_base::_type
protected

Definition at line 78 of file protocol_feature_manager.hpp.

◆ dependencies

flat_set<digest_type> sysio::chain::protocol_feature_base::dependencies

Definition at line 75 of file protocol_feature_manager.hpp.

◆ description_digest

digest_type sysio::chain::protocol_feature_base::description_digest

Definition at line 74 of file protocol_feature_manager.hpp.

◆ protocol_feature_type

std::string sysio::chain::protocol_feature_base::protocol_feature_type

Definition at line 73 of file protocol_feature_manager.hpp.

◆ subjective_restrictions

protocol_feature_subjective_restrictions sysio::chain::protocol_feature_base::subjective_restrictions

Definition at line 76 of file protocol_feature_manager.hpp.


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