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 size_t mFilesInFolder;
30 std::string mPath;
31 std::string mName;
32 std::string mExt;
33
34 public:
35 explicit FileProducer(const std::string& path, const std::string& ext, int filesInFolder = -1,
36 const std::string& name = "tracks_{timestamp}_{hostname}_{pid}{ext}");
37
38 [[nodiscard]] std::string newFileName() const;
39};
40
41} // namespace event_visualisation
42} // namespace o2
43
44#endif // ALICE_O2_EVENTVISUALISATION_WORKFLOW_FILEPRODUCER_H
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 ...