GNU Radio 3.7.2 C++ API
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  virtual void registerQueryCallback(const std::string &id, const queryCallback_t callback) = 0;
37  virtual void unregisterQueryCallback(const std::string &id) = 0;
38  virtual void setCurPrivLevel(const priv_lvl_t priv) { cur_priv = priv; }
39 
40  typedef boost::shared_ptr<rpcserver_base> rpcserver_base_sptr;
41 protected:
43 
44 private:
45 };
46 
47 #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:94
shared_ptr documentation stub
Definition: shared_ptr_docstub.h:15
virtual void registerQueryCallback(const std::string &id, const queryCallback_t callback)=0
Definition: rpccallbackregister_base.h:47
virtual void unregisterQueryCallback(const std::string &id)=0
virtual void setCurPrivLevel(const priv_lvl_t priv)
Definition: rpcserver_base.h:38
Definition: rpcserver_base.h:28
callback_t< gr::messages::msg_producer, gr::messages::msg_producer_sptr > queryCallback_t
Definition: rpccallbackregister_base.h:95
rpcserver_base()
Definition: rpcserver_base.h:31
priv_lvl_t cur_priv
Definition: rpcserver_base.h:42