GNU Radio Manual and C++ API Reference  3.8.1.0
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  * GNU Radio is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 3, or (at your option)
10  * any later version.
11  *
12  * GNU Radio is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with GNU Radio; see the file COPYING. If not, write to
19  * the Free Software Foundation, Inc., 51 Franklin Street,
20  * Boston, MA 02110-1301, USA.
21  */
22 
23 #ifndef RPCSERVER_BASE_H
24 #define RPCSERVER_BASE_H
25 
27 
28 class rpcserver_base : public virtual callbackregister_base
29 {
30 public:
32  virtual ~rpcserver_base() { ; }
33 
34  virtual void registerConfigureCallback(const std::string& id,
35  const configureCallback_t callback) = 0;
36  virtual void unregisterConfigureCallback(const std::string& id) = 0;
37 
38  virtual void registerQueryCallback(const std::string& id,
39  const queryCallback_t callback) = 0;
40  virtual void unregisterQueryCallback(const std::string& id) = 0;
41 
42  virtual void registerHandlerCallback(const std::string& id,
43  const handlerCallback_t callback) = 0;
44  virtual void unregisterHandlerCallback(const std::string& id) = 0;
45 
46  virtual void setCurPrivLevel(const priv_lvl_t priv) { cur_priv = priv; }
47 
48  typedef boost::shared_ptr<rpcserver_base> rpcserver_base_sptr;
49 
50 protected:
52 
53 private:
54 };
55 
56 #endif /* RPCSERVER_BASE_H */
virtual void registerConfigureCallback(const std::string &id, const configureCallback_t callback)=0
Definition: rpccallbackregister_base.h:94
Definition: rpccallbackregister_base.h:67
virtual ~rpcserver_base()
Definition: rpcserver_base.h:32
priv_lvl_t
Definition: rpccallbackregister_base.h:46
virtual void unregisterConfigureCallback(const std::string &id)=0
virtual void registerQueryCallback(const std::string &id, const queryCallback_t callback)=0
Definition: rpccallbackregister_base.h:46
virtual void unregisterQueryCallback(const std::string &id)=0
virtual void setCurPrivLevel(const priv_lvl_t priv)
Definition: rpcserver_base.h:46
virtual void unregisterHandlerCallback(const std::string &id)=0
Definition: rpcserver_base.h:28
rpcserver_base()
Definition: rpcserver_base.h:31
virtual void registerHandlerCallback(const std::string &id, const handlerCallback_t callback)=0
priv_lvl_t cur_priv
Definition: rpcserver_base.h:51