Electroneum
Loading...
Searching...
No Matches
Electroneum::WalletManagerFactory Struct Reference

#include <wallet2_api.h>

Public Types

enum  LogLevel {
  LogLevel_Silent = -1 , LogLevel_0 = 0 , LogLevel_1 = 1 , LogLevel_2 = 2 ,
  LogLevel_3 = 3 , LogLevel_4 = 4 , LogLevel_Min = LogLevel_Silent , LogLevel_Max = LogLevel_4
}

Static Public Member Functions

static WalletManagergetWalletManager ()
static void setLogLevel (int level)
static void setLogCategories (const std::string &categories)

Detailed Description

Definition at line 1260 of file wallet2_api.h.

Member Enumeration Documentation

◆ LogLevel

Enumerator
LogLevel_Silent 
LogLevel_0 
LogLevel_1 
LogLevel_2 
LogLevel_3 
LogLevel_4 
LogLevel_Min 
LogLevel_Max 

Definition at line 1263 of file wallet2_api.h.

Member Function Documentation

◆ getWalletManager()

WalletManager * Electroneum::WalletManagerFactory::getWalletManager ( )
static

Definition at line 375 of file wallet_manager.cpp.

376{
377
378 static WalletManagerImpl * g_walletManager = nullptr;
379
380 if (!g_walletManager) {
381 g_walletManager = new WalletManagerImpl();
382 }
383
384 return g_walletManager;
385}
Here is the caller graph for this function:

◆ setLogCategories()

void Electroneum::WalletManagerFactory::setLogCategories ( const std::string & categories)
static

Definition at line 392 of file wallet_manager.cpp.

393{
394 mlog_set_log(categories.c_str());
395}
void mlog_set_log(const char *log)
Definition mlog.cpp:288
Here is the call graph for this function:

◆ setLogLevel()

void Electroneum::WalletManagerFactory::setLogLevel ( int level)
static

Definition at line 387 of file wallet_manager.cpp.

388{
389 mlog_set_log_level(level);
390}
void mlog_set_log_level(int level)
Definition mlog.cpp:282
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this struct was generated from the following files:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/src/wallet/api/wallet2_api.h
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/src/wallet/api/wallet_manager.cpp