Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ReadSpeedCLI.hxx
Go to the documentation of this file.
1// Author: Enrico Guiraud, David Poulton 2022
2
3/*************************************************************************
4 * Copyright (C) 1995-2022, Rene Brun and Fons Rademakers. *
5 * All rights reserved. *
6 * *
7 * For the licensing terms see $ROOTSYS/LICENSE. *
8 * For the list of contributors see $ROOTSYS/README/CREDITS. *
9 *************************************************************************/
10
11/* This header contains helper functions for the root-readspeed program
12 for CLI related actions, such as argument parsing and output printing. */
13
14#ifndef ROOTREADSPEEDCLI
15#define ROOTREADSPEEDCLI
16
17#include "ReadSpeed.hxx"
18
19#include <vector>
20
21namespace ReadSpeed {
22
23void PrintThroughput(const Result &r);
24
25struct Args {
27 unsigned int fNThreads = 0;
28 bool fAllBranches = false;
29 bool fShouldRun = false;
30};
31
32Args ParseArgs(const std::vector<std::string> &args);
33Args ParseArgs(int argc, char **argv);
34
35} // namespace ReadSpeed
36
37#endif // ROOTREADSPEEDCLI
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
void PrintThroughput(const Result &r)
Args ParseArgs(const std::vector< std::string > &args)
unsigned int fNThreads