DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
OpMonFacility.hpp File Reference
#include "Issues.hpp"
#include <cetlib/BasicPluginFactory.h>
#include <cetlib/compiler_macros.h>
#include "opmonlib/opmon_entry.pb.h"
#include "logging/Logging.hpp"
#include <iostream>
#include <memory>
#include <string>
#include <optional>
Include dependency graph for OpMonFacility.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  dunedaq::opmonlib::OpMonFacility
 

Namespaces

namespace  dunedaq
 Including Qt Headers.
 
namespace  dunedaq::opmonlib
 

Macros

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

Typedefs

using dunedaq::opmonlib::OptionalOrigin = std::optional<dunedaq::opmon::OpMonId>
 

Functions

std::shared_ptr< OpMonFacilitydunedaq::opmonlib::makeOpMonFacility (std::string const &facility, OptionalOrigin=OptionalOrigin())
 

Detailed Description

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.

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 OpMonFacility.hpp.

Macro Definition Documentation

◆ DEFINE_DUNE_OPMON_FACILITY

#define DEFINE_DUNE_OPMON_FACILITY ( klass)
Value:
EXTERN_C_FUNC_DECLARE_START \
std::shared_ptr<dunedaq::opmonlib::OpMonFacility> make(std::string facility, std::optional<dunedaq::opmon::OpMonId> o ) \
{ \
return std::shared_ptr<dunedaq::opmonlib::OpMonFacility>(new klass(facility, o)); \
} \
}

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

Parameters
klassClass to be defined as a Operational Monitoring Facility

Definition at line 37 of file OpMonFacility.hpp.

37#define DEFINE_DUNE_OPMON_FACILITY(klass) \
38 EXTERN_C_FUNC_DECLARE_START \
39 std::shared_ptr<dunedaq::opmonlib::OpMonFacility> make(std::string facility, std::optional<dunedaq::opmon::OpMonId> o ) \
40 { \
41 return std::shared_ptr<dunedaq::opmonlib::OpMonFacility>(new klass(facility, o)); \
42 } \
43 }

◆ EXTERN_C_FUNC_DECLARE_START

#define EXTERN_C_FUNC_DECLARE_START
Value:
extern "C" \
{

Definition at line 26 of file OpMonFacility.hpp.

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