DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
CommandFacility.hpp File Reference
#include "cmdlib/cmd/Nljs.hpp"
#include "CommandedObject.hpp"
#include "Issues.hpp"
#include <cetlib/BasicPluginFactory.h>
#include <cetlib/compiler_macros.h>
#include <tbb/concurrent_queue.h>
#include <future>
#include <functional>
#include <atomic>
#include <memory>
#include <string>
Include dependency graph for CommandFacility.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  dunedaq::cmdlib::CommandFacility
 Interface needed by DAQ apps and services for command handling. More...
 

Namespaces

namespace  dunedaq
 Including Qt Headers.
 
namespace  dunedaq::cmdlib
 

Macros

#define EXTERN_C_FUNC_DECLARE_START
 
#define DEFINE_DUNE_COMMAND_FACILITY(klass)
 Declare the function that will be called by the plugin loader.
 

Functions

template<typename... ARGS>
std::shared_ptr< CommandFacilitydunedaq::cmdlib::make_command_facility (std::string const &uri, ARGS &&... args)
 

Detailed Description

CommandFacility base definitions

This is part of the DUNE DAQ Application Framework, copyright 2020. Licensing/copyright details are in the COPYING file that you should have received with this code.

Definition in file CommandFacility.hpp.

Macro Definition Documentation

◆ DEFINE_DUNE_COMMAND_FACILITY

#define DEFINE_DUNE_COMMAND_FACILITY ( klass)
Value:
EXTERN_C_FUNC_DECLARE_START \
std::unique_ptr<dunedaq::cmdlib::CommandFacility> make() \
{ \
return std::unique_ptr<dunedaq::cmdlib::CommandFacility>(new klass()); \
} \
}

Declare the function that will be called by the plugin loader.

Parameters
klassClass to be defined as a DUNE Command Facility

Definition at line 36 of file CommandFacility.hpp.

36#define DEFINE_DUNE_COMMAND_FACILITY(klass) \
37 EXTERN_C_FUNC_DECLARE_START \
38 std::unique_ptr<dunedaq::cmdlib::CommandFacility> make() \
39 { \
40 return std::unique_ptr<dunedaq::cmdlib::CommandFacility>(new klass()); \
41 } \
42 }

◆ EXTERN_C_FUNC_DECLARE_START

#define EXTERN_C_FUNC_DECLARE_START
Value:
extern "C" \
{

Definition at line 27 of file CommandFacility.hpp.

27#define EXTERN_C_FUNC_DECLARE_START \
28 extern "C" \
29 {