xrootd
XrdOuca2x.hh
Go to the documentation of this file.
1 #ifndef __OOUC_A2X__
2 #define __OOUC_A2X__
3 /******************************************************************************/
4 /* */
5 /* X r d O u c a 2 x . h h */
6 /* */
7 /* (c) 2004 by the Board of Trustees of the Leland Stanford, Jr., University */
8 /* All Rights Reserved. See XrdInfo.cc for complete License Terms */
9 /* Produced by Andrew Hanushevsky for Stanford University under contract */
10 /* DE-AC03-76-SFO0515 with the Department of Energy */
11 /******************************************************************************/
12 
13 // $Id$
14 
15 #include "XrdSys/XrdSysError.hh"
16 
17 // This class is a holding area for various conversion utility routines
18 //
19 
20 class XrdOuca2x
21 {
22 public:
23 static int a2i( XrdSysError &, const char *emsg, const char *item, int *val, int minv=-1, int maxv=-1);
24 static int a2ll(XrdSysError &, const char *emsg, const char *item, long long *val, long long minv=-1, long long maxv=-1);
25 static int a2fm(XrdSysError &, const char *emsg, const char *item, int *val, int minv);
26 static int a2fm(XrdSysError &, const char *emsg, const char *item, int *val, int minv, int maxv);
27 static int a2sp(XrdSysError &, const char *emsg, const char *item, long long *val, long long minv=-1, long long maxv=-1);
28 static int a2sz(XrdSysError &, const char *emsg, const char *item, long long *val, long long minv=-1, long long maxv=-1);
29 static int a2tm(XrdSysError &, const char *emsg, const char *item, int *val, int minv=-1, int maxv=-1);
30 static int a2vp(XrdSysError &, const char *emsg, const char *item, int *val, int minv=-1, int maxv=-1);
31 
32 private:
33 static int Emsg(XrdSysError &Eroute, const char *etxt1, const char *item,
34  const char *etxt2, int val);
35 static int Emsg(XrdSysError &Eroute, const char *etxt1, const char *item,
36  const char *etxt2, long long val);
37 };
38 
39 #endif