GNU Radio Manual and C++ API Reference  3.10.9.1
The Free & Open Software Radio Ecosystem
rpcserver_base.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2012 Free Software Foundation, Inc.
4  *
5  * This file is part of GNU Radio
6  *
7  * SPDX-License-Identifier: GPL-3.0-or-later
8  *
9  */
10 
11 #ifndef RPCSERVER_BASE_H
12 #define RPCSERVER_BASE_H
13 
15 
16 class rpcserver_base : public virtual callbackregister_base
17 {
18 public:
20  ~rpcserver_base() override { ; }
21 
22  void registerConfigureCallback(const std::string& id,
23  const configureCallback_t callback) override = 0;
24  void unregisterConfigureCallback(const std::string& id) override = 0;
25 
26  void registerQueryCallback(const std::string& id,
27  const queryCallback_t callback) override = 0;
28  void unregisterQueryCallback(const std::string& id) override = 0;
29 
30  void registerHandlerCallback(const std::string& id,
31  const handlerCallback_t callback) override = 0;
32  void unregisterHandlerCallback(const std::string& id) override = 0;
33 
34  virtual void setCurPrivLevel(const priv_lvl_t priv) { cur_priv = priv; }
35 
36  typedef std::shared_ptr<rpcserver_base> rpcserver_base_sptr;
37 
38 protected:
40 
41 private:
42 };
43 
44 #endif /* RPCSERVER_BASE_H */
Definition: rpccallbackregister_base.h:83
Definition: rpcserver_base.h:17
priv_lvl_t cur_priv
Definition: rpcserver_base.h:39
void unregisterHandlerCallback(const std::string &id) override=0
void registerQueryCallback(const std::string &id, const queryCallback_t callback) override=0
void registerHandlerCallback(const std::string &id, const handlerCallback_t callback) override=0
void unregisterConfigureCallback(const std::string &id) override=0
~rpcserver_base() override
Definition: rpcserver_base.h:20
void registerConfigureCallback(const std::string &id, const configureCallback_t callback) override=0
rpcserver_base()
Definition: rpcserver_base.h:19
void unregisterQueryCallback(const std::string &id) override=0
virtual void setCurPrivLevel(const priv_lvl_t priv)
Definition: rpcserver_base.h:34
priv_lvl_t
Definition: rpccallbackregister_base.h:34
@ RPC_PRIVLVL_ALL
Definition: rpccallbackregister_base.h:34
Definition: rpccallbackregister_base.h:55