xrootd
XrdSutRndm.hh
Go to the documentation of this file.
1 // $Id$
2 #ifndef __SUT_RNDM_H__
3 #define __SUT_RNDM_H__
4 /******************************************************************************/
5 /* */
6 /* X r d S u t R n d m . h h */
7 /* */
8 /* (c) 2004 by the Board of Trustees of the Leland Stanford, Jr., University */
9 /* All Rights Reserved. See XrdInfo.cc for complete License Terms */
10 /* Produced by Andrew Hanushevsky for Stanford University under contract */
11 /* DE-AC03-76-SFO0515 with the Department of Energy */
12 /******************************************************************************/
13 
14 #ifndef __SUT_AUX_H__
15 #include <XrdSut/XrdSutAux.hh>
16 #endif
17 
18 /******************************************************************************/
19 /* */
20 /* Provider of random bunches of bits */
21 /* */
22 /******************************************************************************/
23 
24 class XrdOucString;
25 
26 class XrdSutRndm {
27 
28 public:
29  static bool fgInit;
30 
32  virtual ~XrdSutRndm() { }
33 
34  // Initializer
35  static bool Init(bool force = 0);
36 
37  // Buffer provider
38  static char *GetBuffer(int len, int opt = -1);
39  // String provider
40  static int GetString(int opt, int len, XrdOucString &s);
41  static int GetString(const char *copt, int len, XrdOucString &s);
42  // Integer providers
43  static unsigned int GetUInt();
44  // Random Tag
45  static int GetRndmTag(XrdOucString &rtag);
46 }
47 ;
48 
49 #endif
50