XrdMonUtils.hh

Go to the documentation of this file.
00001 /*****************************************************************************/
00002 /*                                                                           */
00003 /*                              XrdMonUtils.hh                               */
00004 /*                                                                           */
00005 /* (c) 2005 by the Board of Trustees of the Leland Stanford, Jr., University */
00006 /*                            All Rights Reserved                            */
00007 /*       Produced by Jacek Becla for Stanford University under contract      */
00008 /*              DE-AC02-76SF00515 with the Department of Energy              */
00009 /*****************************************************************************/
00010 
00011 // $Id: XrdMonUtils.hh 22437 2008-03-04 14:35:16Z rdm $
00012 
00013 #ifndef XRDMONUTILS_HH
00014 #define XRDMONUTILS_HH
00015 
00016 #include "XProtocol/XPtypes.hh"
00017 #include <string>
00018 #include <utility>
00019 using std::pair;
00020 using std::string;
00021 
00022 enum { GMT = 1 };
00023 
00024 
00025 extern string generateTimestamp();
00026 extern string timestamp2string(kXR_int32 t, bool gmt=false);
00027 extern void   timestamp2string(kXR_int32 t, char s[24], bool gmt);
00028 extern pair<string, string> breakHostPort(const string& hp);
00029 extern void mkdirIfNecessary(const char* dir);
00030 
00031 
00032 #endif /* XRDMONUTILS_HH */

Generated on Tue Jul 5 14:46:43 2011 for ROOT_528-00b_version by  doxygen 1.5.1