XrdOuca2x.hh

Go to the documentation of this file.
00001 #ifndef __OOUC_A2X__
00002 #define __OOUC_A2X__
00003 /******************************************************************************/
00004 /*                                                                            */
00005 /*                          X r d O u c a 2 x . h h                           */
00006 /*                                                                            */
00007 /* (c) 2004 by the Board of Trustees of the Leland Stanford, Jr., University  */
00008 /*       All Rights Reserved. See XrdInfo.cc for complete License Terms       */
00009 /*   Produced by Andrew Hanushevsky for Stanford University under contract    */
00010 /*              DE-AC03-76-SFO0515 with the Department of Energy              */
00011 /******************************************************************************/
00012   
00013 //          $Id: XrdOuca2x.hh 32231 2010-02-05 18:24:46Z ganis $
00014 
00015 #include "XrdSys/XrdSysError.hh"
00016 
00017 // This class is a holding area for various conversion utility routines
00018 //
00019 
00020 class XrdOuca2x
00021 {
00022 public:
00023 static int a2i( XrdSysError &, const char *emsg, const char *item, int *val, int minv=-1, int maxv=-1);
00024 static int a2ll(XrdSysError &, const char *emsg, const char *item, long long *val, long long minv=-1, long long maxv=-1);
00025 static int a2fm(XrdSysError &, const char *emsg, const char *item, int *val, int minv);
00026 static int a2fm(XrdSysError &, const char *emsg, const char *item, int *val, int minv, int maxv);
00027 static int a2sp(XrdSysError &, const char *emsg, const char *item, long long *val, long long minv=-1, long long maxv=-1);
00028 static int a2sz(XrdSysError &, const char *emsg, const char *item, long long *val, long long minv=-1, long long maxv=-1);
00029 static int a2tm(XrdSysError &, const char *emsg, const char *item, int *val, int minv=-1, int maxv=-1);
00030 static int a2vp(XrdSysError &, const char *emsg, const char *item, int *val, int minv=-1, int maxv=-1);
00031 
00032 private:
00033 static int Emsg(XrdSysError &Eroute, const char *etxt1, const char *item,
00034                                      const char *etxt2, int       val);
00035 static int Emsg(XrdSysError &Eroute, const char *etxt1, const char *item,
00036                                      const char *etxt2, long long val);
00037 };
00038 
00039 #endif

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