forked from AliceO2Group/AliceO2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge 9f7bb5c into sapling-pr-archive-ktf
- Loading branch information
Showing
1 changed file
with
56 additions
and
0 deletions.
There are no files selected for viewing
56 changes: 56 additions & 0 deletions
56
Framework/Core/include/Framework/WorkflowDefinitionContext.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
// Copyright 2019-2025 CERN and copyright holders of ALICE O2. | ||
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders. | ||
// All rights not expressly granted are reserved. | ||
// | ||
// This software is distributed under the terms of the GNU General Public | ||
// License v3 (GPL Version 3), copied verbatim in the file "COPYING". | ||
// | ||
// In applying this license CERN does not waive the privileges and immunities | ||
// granted to it by virtue of its status as an Intergovernmental Organization | ||
// or submit itself to any jurisdiction. | ||
#ifndef O2_FRAMEWORK_WORKFLOWDEFINITIONCONTEXT_H_ | ||
#define O2_FRAMEWORK_WORKFLOWDEFINITIONCONTEXT_H_ | ||
|
||
#include "Framework/ConfigParamSpec.h" | ||
#include "Framework/CompletionPolicy.h" | ||
#include "Framework/DispatchPolicy.h" | ||
#include "Framework/ResourcePolicy.h" | ||
#include "Framework/CallbacksPolicy.h" | ||
#include "Framework/SendingPolicy.h" | ||
#include "Framework/WorkflowSpec.h" | ||
#include "Framework/ChannelConfigurationPolicy.h" | ||
#include <vector> | ||
|
||
namespace o2::framework | ||
{ | ||
|
||
struct WorkflowDefinitionContext { | ||
std::vector<ConfigParamSpec> workflowOptions; | ||
std::vector<CompletionPolicy> completionPolicies; | ||
std::vector<DispatchPolicy> dispatchPolicies; | ||
std::vector<ResourcePolicy> resourcePolicies; | ||
std::vector<CallbacksPolicy> callbacksPolicies; | ||
std::vector<SendingPolicy> sendingPolicies; | ||
std::vector<ConfigParamSpec> extraOptions; | ||
std::vector<ChannelConfigurationPolicy> channelPolicies; | ||
std::unique_ptr<ConfigContext> configContext; | ||
|
||
// For the moment, let's put them here. We should | ||
// probably move them to a different place, since these are not really part | ||
// of the workflow definition but will be there also at runtine. | ||
std::unique_ptr<ServiceRegistry> configRegistry{nullptr}; | ||
std::unique_ptr<ConfigParamRegistry> workflowOptionsRegistry{nullptr}; | ||
|
||
o2::framework::WorkflowSpec specs; | ||
}; | ||
|
||
struct WorkflowDefinition { | ||
std::function<o2::framework::WorkflowDefinitionContext(int argc, char** argv)> defineWorkflow; | ||
}; | ||
|
||
struct WorkflowPlugin { | ||
virtual o2::framework::WorkflowDefinition* create() = 0; | ||
}; | ||
|
||
} // namespace o2::framework | ||
#endif // O2_FRAMEWORK_WORKFLOWDEFINITIONCONTEXT_H_ |