Loading...
Searching...
No Matches
rpcmanager.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 RPCMANAGER_H
#define RPCMANAGER_H
#include <gnuradio/api.h>
#include <gnuradio/rpcmanager_base.h>
#include <gnuradio/rpcserver_booter_aggregator.h>
#include <memory>
class GR_RUNTIME_API rpcmanager : public virtual rpcmanager_base
{
public:
rpcmanager();
~rpcmanager();
static rpcserver_booter_base* get();
static void register_booter(rpcserver_booter_base* booter);
template <typename T>
class rpcserver_booter_register_helper
{
public:
rpcserver_booter_register_helper() { rpcmanager::register_booter(new T()); }
// TODO: unregister
};
private:
static bool make_aggregator;
static bool booter_registered;
static bool aggregator_registered;
static void rpcserver_booter_base_sptr_dest(rpcserver_booter_base* b) { (void)b; }
static std::unique_ptr<rpcserver_booter_base> boot;
static std::unique_ptr<rpcserver_booter_aggregator> aggregator;
};
#endif /* RPCMANAGER_H */
rpcmanager::rpcserver_booter_register_helper::rpcserver_booter_register_helper
rpcserver_booter_register_helper()
Definition rpcmanager.h:33
rpcmanager_base::rpcmanager_base
rpcmanager_base()
Definition rpcmanager_base.h:24
rpcmanager::~rpcmanager
~rpcmanager()
rpcmanager::get
static rpcserver_booter_base * get()
rpcmanager::rpcmanager
rpcmanager()
rpcmanager::register_booter
static void register_booter(rpcserver_booter_base *booter)
rpcserver_booter_base
Definition rpcserver_booter_base.h:20
api.h
GR_RUNTIME_API
#define GR_RUNTIME_API
Definition gnuradio-runtime/include/gnuradio/api.h:18
rpcmanager_base.h
rpcserver_booter_aggregator.h