Loading...
Searching...
No Matches
rpcserver_base.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2012 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* SPDX-License-Identifier: GPL-3.0-or-later
*
*/
#ifndef RPCSERVER_BASE_H
#define RPCSERVER_BASE_H
#include <gnuradio/rpccallbackregister_base.h>
class rpcserver_base : public virtual callbackregister_base
{
public:
rpcserver_base() : cur_priv(RPC_PRIVLVL_ALL) { ; }
~rpcserver_base() override { ; }
void registerConfigureCallback(const std::string& id,
const configureCallback_t callback) override = 0;
void unregisterConfigureCallback(const std::string& id) override = 0;
void registerQueryCallback(const std::string& id,
const queryCallback_t callback) override = 0;
void unregisterQueryCallback(const std::string& id) override = 0;
void registerHandlerCallback(const std::string& id,
const handlerCallback_t callback) override = 0;
void unregisterHandlerCallback(const std::string& id) override = 0;
virtual void setCurPrivLevel(const priv_lvl_t priv) { cur_priv = priv; }
typedef std::shared_ptr<rpcserver_base> rpcserver_base_sptr;
protected:
priv_lvl_t cur_priv;
private:
};
#endif /* RPCSERVER_BASE_H */
rpcserver_base::cur_priv
priv_lvl_t cur_priv
Definition rpcserver_base.h:39
rpcserver_base::unregisterHandlerCallback
void unregisterHandlerCallback(const std::string &id) override=0
rpcserver_base::registerQueryCallback
void registerQueryCallback(const std::string &id, const queryCallback_t callback) override=0
rpcserver_base::registerHandlerCallback
void registerHandlerCallback(const std::string &id, const handlerCallback_t callback) override=0
rpcserver_base::unregisterConfigureCallback
void unregisterConfigureCallback(const std::string &id) override=0
rpcserver_base::~rpcserver_base
~rpcserver_base() override
Definition rpcserver_base.h:20
rpcserver_base::registerConfigureCallback
void registerConfigureCallback(const std::string &id, const configureCallback_t callback) override=0
rpcserver_base::rpcserver_base
rpcserver_base()
Definition rpcserver_base.h:19
rpcserver_base::unregisterQueryCallback
void unregisterQueryCallback(const std::string &id) override=0
rpcserver_base::setCurPrivLevel
virtual void setCurPrivLevel(const priv_lvl_t priv)
Definition rpcserver_base.h:34
rpccallbackregister_base.h
priv_lvl_t
priv_lvl_t
Definition rpccallbackregister_base.h:34
RPC_PRIVLVL_ALL
@ RPC_PRIVLVL_ALL
Definition rpccallbackregister_base.h:34
callbackregister_base::queryCallback_t
callback_t< gr::messages::msg_producer, gr::messages::msg_producer_sptr > queryCallback_t
Definition rpccallbackregister_base.h:111
callbackregister_base::callbackregister_base
callbackregister_base()
Definition rpccallbackregister_base.h:115
callbackregister_base::handlerCallback_t
callback_t< gr::messages::msg_accepter, gr::messages::msg_accepter_sptr > handlerCallback_t
Definition rpccallbackregister_base.h:113
callbackregister_base::configureCallback_t
callback_t< gr::messages::msg_accepter, gr::messages::msg_accepter_sptr > configureCallback_t
Definition rpccallbackregister_base.h:109