OpenCBDC Transaction Processor
Loading...
Searching...
No Matches
cbdc::watchtower::controller Class Reference

Wrapper for the watchtower executable implementation. More...

#include <controller.hpp>

Public Member Functions

 controller ()=delete
 
 controller (const controller &)=delete
 
auto operator= (const controller &) -> controller &=delete
 
 controller (controller &&)=delete
 
auto operator= (controller &&) -> controller &=delete
 
 controller (uint32_t watchtower_id, config::options opts, const std::shared_ptr< logging::log > &log)
 Constructor.
 
 ~controller ()
 
auto init () -> bool
 Initializes the controller.
 
auto get_block_height () const -> uint64_t
 

Detailed Description

Wrapper for the watchtower executable implementation.

Definition at line 17 of file uhs/atomizer/watchtower/controller.hpp.

Constructor & Destructor Documentation

◆ controller() [1/4]

cbdc::watchtower::controller::controller ( )
delete

◆ controller() [2/4]

cbdc::watchtower::controller::controller ( const controller & )
delete

◆ controller() [3/4]

cbdc::watchtower::controller::controller ( controller && )
delete

◆ controller() [4/4]

cbdc::watchtower::controller::controller ( uint32_t watchtower_id,
config::options opts,
const std::shared_ptr< logging::log > & log )

Constructor.

Parameters
watchtower_idthe running ID of this watchtower.
optsconfiguration options.
logpointer to shared logger.

Definition at line 14 of file uhs/atomizer/watchtower/controller.cpp.

◆ ~controller()

cbdc::watchtower::controller::~controller ( )

Definition at line 25 of file uhs/atomizer/watchtower/controller.cpp.

Member Function Documentation

◆ get_block_height()

auto cbdc::watchtower::controller::get_block_height ( ) const -> uint64_t

Definition at line 165 of file uhs/atomizer/watchtower/controller.cpp.

◆ init()

auto cbdc::watchtower::controller::init ( ) -> bool

Initializes the controller.

Returns
true if initialization succeeded.

Definition at line 43 of file uhs/atomizer/watchtower/controller.cpp.

◆ operator=() [1/2]

auto cbdc::watchtower::controller::operator= ( const controller & ) -> controller &=delete
delete

◆ operator=() [2/2]

auto cbdc::watchtower::controller::operator= ( controller && ) -> controller &=delete
delete

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