Project
Loading...
Searching...
No Matches
CommonDriverServices.cxx
Go to the documentation of this file.
1
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3
// All rights not expressly granted are reserved.
4
//
5
// This software is distributed under the terms of the GNU General Public
6
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7
//
8
// In applying this license CERN does not waive the privileges and immunities
9
// granted to it by virtue of its status as an Intergovernmental Organization
10
// or submit itself to any jurisdiction.
11
12
#include "
CommonDriverServices.h
"
13
#include "
Framework/CommonServices.h
"
14
#include "
Framework/PluginManager.h
"
15
16
// Make sure we can use aggregated initialisers.
17
#pragma GCC diagnostic push
18
#pragma GCC diagnostic ignored "-Wpedantic"
19
20
namespace
o2::framework
21
{
22
23
std::vector<ServiceSpec>
o2::framework::CommonDriverServices::defaultServices
()
24
{
25
std::vector<ServiceSpec> specs{
26
CommonServices::configurationSpec
()};
27
// Load plugins depending on the environment
28
std::vector<LoadablePlugin> loadableServices = {};
29
char
* loadableServicesEnv = getenv(
"DPL_LOAD_DRIVER_SERVICES"
);
30
// String to define the services to load is:
31
//
32
// library1:name1,library2:name2,...
33
if
(loadableServicesEnv) {
34
loadableServices =
PluginManager::parsePluginSpecString
(loadableServicesEnv);
35
PluginManager::loadFromPlugin<ServiceSpec, ServicePlugin>(loadableServices, specs);
36
}
37
return
specs;
38
}
39
}
// namespace o2::framework
CommonDriverServices.h
CommonServices.h
PluginManager.h
o2::framework
Defining PrimaryVertex explicitly as messageable.
Definition
TFIDInfo.h:20
o2::framework::CommonDriverServices::defaultServices
static std::vector< ServiceSpec > defaultServices()
Definition
CommonDriverServices.cxx:23
o2::framework::CommonServices::configurationSpec
static ServiceSpec configurationSpec()
Definition
CommonServices.cxx:311
o2::framework::PluginManager::parsePluginSpecString
static std::vector< LoadablePlugin > parsePluginSpecString(char const *str)
Parse a comma separated list of <library>:<plugin-name> plugin declarations.
Definition
PluginManager.cxx:19
Framework
Core
src
CommonDriverServices.cxx
Generated on Tue Feb 25 2025 23:16:39 for Project by
1.9.8