Project
Loading...
Searching...
No Matches
FileProducer.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
15
16#ifndef ALICE_O2_EVENTVISUALISATION_WORKFLOW_FILEPRODUCER_H
17#define ALICE_O2_EVENTVISUALISATION_WORKFLOW_FILEPRODUCER_H
18
19#include <string>
20#include <deque>
21
22namespace o2
23{
24namespace event_visualisation
25{
27{
28 private:
29 std::string mPath;
30 std::string mName;
31 std::string mExt;
32
33 public:
34 explicit FileProducer(const std::string& path, const std::string& ext, const std::string& name = "tracks_{timestamp}_{hostname}_{pid}{ext}");
35
36 [[nodiscard]] std::string newFileName() const;
37 void reduceNumberOfFiles(size_t filesInFolder) const;
38};
39
40} // namespace event_visualisation
41} // namespace o2
42
43#endif // ALICE_O2_EVENTVISUALISATION_WORKFLOW_FILEPRODUCER_H
void reduceNumberOfFiles(size_t filesInFolder) const
GLuint const GLchar * name
Definition glcorearb.h:781
GLsizei const GLchar *const * path
Definition glcorearb.h:3591
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...