GNU Radio Manual and C++ API Reference  3.7.9.2
The Free & Open Software Radio Ecosystem
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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, const configureCallback_t callback) = 0;
35  virtual void unregisterConfigureCallback(const std::string &id) = 0;
36 
37  virtual void registerQueryCallback(const std::string &id, const queryCallback_t callback) = 0;
38  virtual void unregisterQueryCallback(const std::string &id) = 0;
39 
40  virtual void registerHandlerCallback(const std::string &id, const handlerCallback_t callback) = 0;
41  virtual void unregisterHandlerCallback(const std::string &id) = 0;
42 
43  virtual void setCurPrivLevel(const priv_lvl_t priv) { cur_priv = priv; }
44 
45  typedef boost::shared_ptr<rpcserver_base> rpcserver_base_sptr;
46 protected:
48 
49 private:
50 };
51 
52 #endif /* RPCSERVER_BASE_H */
virtual void registerConfigureCallback(const std::string &id, const configureCallback_t callback)=0
Definition: rpccallbackregister_base.h:60
virtual ~rpcserver_base()
Definition: rpcserver_base.h:32
priv_lvl_t
Definition: rpccallbackregister_base.h:46
virtual void unregisterConfigureCallback(const std::string &id)=0
callback_t< gr::messages::msg_accepter, gr::messages::msg_accepter_sptr > configureCallback_t
Definition: rpccallbackregister_base.h:100
virtual void registerQueryCallback(const std::string &id, const queryCallback_t callback)=0
Definition: rpccallbackregister_base.h:47
callback_t< gr::messages::msg_accepter, gr::messages::msg_accepter_sptr > handlerCallback_t
Definition: rpccallbackregister_base.h:102
virtual void unregisterQueryCallback(const std::string &id)=0
virtual void setCurPrivLevel(const priv_lvl_t priv)
Definition: rpcserver_base.h:43
virtual void unregisterHandlerCallback(const std::string &id)=0
Definition: rpcserver_base.h:28
callback_t< gr::messages::msg_producer, gr::messages::msg_producer_sptr > queryCallback_t
Definition: rpccallbackregister_base.h:101
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:47