Project
Loading...
Searching...
No Matches
O2ControlHelpers.h
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#ifndef FRAMEWORK_O2CONTROLHELPERS_H
12#define FRAMEWORK_O2CONTROLHELPERS_H
13
17#include <vector>
18#include <iosfwd>
19
20namespace o2
21{
22namespace framework
23{
24
36void dumpDeviceSpec2O2Control(std::string workflowName,
37 std::vector<DeviceSpec> const& specs,
38 std::vector<DeviceExecution> const& executions,
39 CommandInfo const& commandInfo);
40
42void dumpWorkflow(std::ostream& dumpOut,
43 const std::vector<DeviceSpec>& specs,
44 const std::vector<DeviceExecution>& executions,
45 const CommandInfo& commandInfo,
46 std::string workflowName,
47 std::string indLevel);
48
50void dumpTask(std::ostream& dumpOut,
51 const DeviceSpec& spec,
52 const DeviceExecution& execution,
53 std::string taskName,
54 std::string indLevel);
55
56} // namespace framework
57} // namespace o2
58#endif // FRAMEWORK_O2CONTROLHELPERS_H
void dumpTask(std::ostream &dumpOut, const DeviceSpec &spec, const DeviceExecution &execution, std::string taskName, std::string indLevel)
Dumps only one task.
void dumpWorkflow(std::ostream &dumpOut, const std::vector< DeviceSpec > &specs, const std::vector< DeviceExecution > &executions, const CommandInfo &commandInfo, std::string workflowName, std::string indLevel)
Dumps only the workflow file.
void dumpDeviceSpec2O2Control(std::string workflowName, std::vector< DeviceSpec > const &specs, std::vector< DeviceExecution > const &executions, CommandInfo const &commandInfo)
Dumps the AliECS compatible workflow and task templates for a DPL workflow.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...