xrootd
XrdMonUtils.hh
Go to the documentation of this file.
1 /*****************************************************************************/
2 /* */
3 /* XrdMonUtils.hh */
4 /* */
5 /* (c) 2005 by the Board of Trustees of the Leland Stanford, Jr., University */
6 /* All Rights Reserved */
7 /* Produced by Jacek Becla for Stanford University under contract */
8 /* DE-AC02-76SF00515 with the Department of Energy */
9 /*****************************************************************************/
10 
11 // $Id$
12 
13 #ifndef XRDMONUTILS_HH
14 #define XRDMONUTILS_HH
15 
16 #include "XProtocol/XPtypes.hh"
17 #include <string>
18 #include <utility>
19 using std::pair;
20 using std::string;
21 
22 enum { GMT = 1 };
23 
24 
25 extern string generateTimestamp();
26 extern string timestamp2string(kXR_int32 t, bool gmt=false);
27 extern void timestamp2string(kXR_int32 t, char s[24], bool gmt);
28 extern pair<string, string> breakHostPort(const string& hp);
29 extern void mkdirIfNecessary(const char* dir);
30 
31 
32 #endif /* XRDMONUTILS_HH */