Project
Loading...
Searching...
No Matches
DirectoryLoader.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 O2EVE_DIRECTORYLOADER_H
17#define O2EVE_DIRECTORYLOADER_H
18
19#include <string>
20#include <vector>
21#include <deque>
22
23namespace o2
24{
25namespace event_visualisation
26{
27
29{
30 private:
31 static int getNumberOfFiles(const std::string& path, std::vector<std::string>& ext);
32 static std::string getLatestFile(const std::string& path, std::vector<std::string>& ext);
33
34 public:
35 static std::deque<std::string> load(const std::string& path, const std::string& marker, const std::vector<std::string>& ext);
36 static std::deque<std::string> load(const std::vector<std::string>& paths, const std::string& marker, const std::vector<std::string>& ext);
37 static std::vector<std::string> allFolders(const std::string& location);
38 static bool canCreateNextFile(const std::vector<std::string>& paths, const std::string& marker, const std::vector<std::string>& ext, long long millisec, long capacityAllowed);
39 static void reduceNumberOfFiles(const std::string& path, const std::deque<std::string>& files, std::size_t filesInFolder);
40 static void removeOldestFiles(const std::string& path, std::vector<std::string>& ext, int remaining);
41};
42
43} // namespace event_visualisation
44} // namespace o2
45
46#endif // O2EVE_DIRECTORYLOADER_H
static void removeOldestFiles(const std::string &path, std::vector< std::string > &ext, int remaining)
static bool canCreateNextFile(const std::vector< std::string > &paths, const std::string &marker, const std::vector< std::string > &ext, long long millisec, long capacityAllowed)
static void reduceNumberOfFiles(const std::string &path, const std::deque< std::string > &files, std::size_t filesInFolder)
static std::vector< std::string > allFolders(const std::string &location)
static std::deque< std::string > load(const std::string &path, const std::string &marker, const std::vector< std::string > &ext)
GLsizei const GLuint * paths
Definition glcorearb.h:5475
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 ...