XRootD
XrdOssStatsConfig.hh
Go to the documentation of this file.
1 
2 #ifndef __XRDOSSSTATS_CONFIG_H
3 #define __XRDOSSSTATS_CONFIG_H
4 
5 #include <chrono>
6 #include <string>
7 
8 namespace XrdOssStats {
9 
10 namespace detail {
11 
12 enum LogMask {
13  Debug = 0x01,
14  Info = 0x02,
15  Warning = 0x04,
16  Error = 0x08,
17  All = 0xff
18 };
19 
20 std::string LogMaskToString(int mask);
21 
22 bool ParseDuration(const std::string &duration, std::chrono::steady_clock::duration &result, std::string &errmsg);
23 
24 } // detail
25 
26 } // namespace XrdOssStats
27 
28 #endif // __XRDOSSSTATS_CONFIG_H
bool ParseDuration(const std::string &duration, std::chrono::steady_clock::duration &result, std::string &errmsg)
std::string LogMaskToString(int mask)