Fabcoin Core  0.16.2
P2P Digital Currency
AdminUtils.h
Go to the documentation of this file.
1 #pragma once
2 #include "AdminUtilsFace.h"
3 
4 namespace dev
5 {
6 namespace rpc
7 {
8 
9 class SessionManager;
10 
12 {
13 public:
14  virtual void exit() = 0;
15 };
16 
18 {
19 public:
20  AdminUtils(SessionManager& _sm, SystemManager* _systemManager = nullptr);
21  virtual RPCModules implementedModules() const override
22  {
23  return RPCModules{RPCModule{"admin", "1.0"}};
24  }
25  virtual bool admin_setVerbosity(int _v, std::string const& _session) override;
26  virtual bool admin_verbosity(int _v) override;
27  virtual bool admin_exit(std::string const& _session) override;
28 
29 private:
31  SystemManager* m_systemManager = nullptr;
32 };
33 
34 }
35 }
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
Definition: Arith256.cpp:15
std::vector< RPCModule > RPCModules
Definition: ModularServer.h:50
virtual RPCModules implementedModules() const override
Definition: AdminUtils.h:21
virtual void exit()=0
SessionManager & m_sm
Definition: AdminUtils.h:30