File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111
1212o2_add_library (Framework
1313 SOURCES src/AODReaderHelpers.cxx
14+ src/AlgorithmSpec.cxx
1415 src/ArrowSupport.cxx
1516 src/ArrowTableSlicingCache.cxx
1617 src/AnalysisDataModel.cxx
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments