Skip to content

Commit 6dc4506

Browse files
committed
DPL: move stuff out of line
1 parent 44090f4 commit 6dc4506

3 files changed

Lines changed: 36 additions & 16 deletions

File tree

Framework/Core/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
o2_add_library(Framework
1313
SOURCES src/AODReaderHelpers.cxx
14+
src/AlgorithmSpec.cxx
1415
src/ArrowSupport.cxx
1516
src/ArrowTableSlicingCache.cxx
1617
src/AnalysisDataModel.cxx

Framework/Core/include/Framework/AlgorithmSpec.h

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -46,22 +46,9 @@ struct AlgorithmSpec {
4646
using ErrorCallback = std::function<void(ErrorContext&)>;
4747
using InitErrorCallback = std::function<void(InitErrorContext&)>;
4848

49-
static AlgorithmSpec dummyAlgorithm()
50-
{
51-
return AlgorithmSpec{ProcessCallback{nullptr}};
52-
}
53-
54-
static ErrorCallback& emptyErrorCallback()
55-
{
56-
static ErrorCallback callback = nullptr;
57-
return callback;
58-
}
59-
60-
static InitErrorCallback& emptyInitErrorCallback()
61-
{
62-
static InitErrorCallback callback = nullptr;
63-
return callback;
64-
}
49+
static AlgorithmSpec dummyAlgorithm();
50+
static ErrorCallback& emptyErrorCallback();
51+
static InitErrorCallback& emptyInitErrorCallback();
6552

6653
AlgorithmSpec() = default;
6754

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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 "Framework/AlgorithmSpec.h"
13+
14+
namespace o2::framework
15+
{
16+
AlgorithmSpec AlgorithmSpec::dummyAlgorithm()
17+
{
18+
return AlgorithmSpec{ProcessCallback{nullptr}};
19+
}
20+
21+
AlgorithmSpec::ErrorCallback& AlgorithmSpec::emptyErrorCallback()
22+
{
23+
static ErrorCallback callback = nullptr;
24+
return callback;
25+
}
26+
27+
AlgorithmSpec::InitErrorCallback& AlgorithmSpec::emptyInitErrorCallback()
28+
{
29+
static InitErrorCallback callback = nullptr;
30+
return callback;
31+
}
32+
} // namespace o2::framework

0 commit comments

Comments
 (0)