xrootd
|
00001 #ifndef __FRMUTILS__HH 00002 #define __FRMUTILS__HH 00003 /******************************************************************************/ 00004 /* */ 00005 /* X r d F r m U t i l s . h h */ 00006 /* */ 00007 /* (c) 2009 by the Board of Trustees of the Leland Stanford, Jr., University */ 00008 /* All Rights Reserved */ 00009 /* Produced by Andrew Hanushevsky for Stanford University under contract */ 00010 /* DE-AC02-76-SFO0515 with the Department of Energy */ 00011 /******************************************************************************/ 00012 00013 #include <stdlib.h> 00014 #include <time.h> 00015 00016 #include "XrdFrm/XrdFrmRequest.hh" 00017 00018 class XrdFrmXAttrPin; 00019 00020 class XrdFrmUtils 00021 { 00022 public: 00023 00024 static char Ask(char dflt, const char *Msg1, const char *Msg2="", 00025 const char *Msg3=""); 00026 00027 static int chkURL(const char *Url); 00028 00029 static char *makePath(const char *iName, const char *Path, int Mode); 00030 00031 static char *makeQDir(const char *Path, int Mode); 00032 00033 static int MapM2O(const char *Nop, const char *Pop); 00034 00035 static int MapR2Q(char Opc, int *Flags=0); 00036 00037 static int MapV2I(const char *Opc, XrdFrmRequest::Item &ICode); 00038 00039 static int Unique(const char *lkfn, const char *myProg); 00040 00041 static int updtCpy(const char *Pfn, int Adj); 00042 00043 static int Utime(const char *Path, time_t tVal); 00044 00045 XrdFrmUtils() {} 00046 ~XrdFrmUtils() {} 00047 private: 00048 }; 00049 #endif