ledger-core
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ledger::core::AbstractBlockchainObserver< Account, BlockchainExplorerTransaction, BlockchainExplorerBlock > Class Template Referenceabstract
+ Inheritance diagram for ledger::core::AbstractBlockchainObserver< Account, BlockchainExplorerTransaction, BlockchainExplorerBlock >:

Public Member Functions

virtual bool registerAccount (const std::shared_ptr< Account > &account)
 
virtual bool unregisterAccount (const std::shared_ptr< Account > &account)
 
virtual bool isRegistered (const std::shared_ptr< Account > &account)
 
std::shared_ptr< spdlog::logger > logger () const
 
bool isObserving () const
 

Protected Member Functions

virtual void onStart ()=0
 
virtual void onStop ()=0
 
virtual void putTransaction (const BlockchainExplorerTransaction &tx)=0
 
virtual void putBlock (const BlockchainExplorerBlock &block)=0
 
void setLogger (const std::shared_ptr< spdlog::logger > &logger)
 

Protected Attributes

std::list< std::shared_ptr< Account > > _accounts
 
std::mutex _lock
 
std::shared_ptr< spdlog::logger > _logger
 

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