xrootd
Loading...
Searching...
No Matches
XrdSutRndm.hh
Go to the documentation of this file.
1#ifndef __SUT_RNDM_H__
2#define __SUT_RNDM_H__
3/******************************************************************************/
4/* */
5/* X r d S u t R n d m . h h */
6/* */
7/* (c) 2004 by the Board of Trustees of the Leland Stanford, Jr., University */
8/* Produced by Gerri Ganis for CERN */
9/* */
10/* This file is part of the XRootD software suite. */
11/* */
12/* XRootD is free software: you can redistribute it and/or modify it under */
13/* the terms of the GNU Lesser General Public License as published by the */
14/* Free Software Foundation, either version 3 of the License, or (at your */
15/* option) any later version. */
16/* */
17/* XRootD is distributed in the hope that it will be useful, but WITHOUT */
18/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
19/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public */
20/* License for more details. */
21/* */
22/* You should have received a copy of the GNU Lesser General Public License */
23/* along with XRootD in a file called COPYING.LESSER (LGPL license) and file */
24/* COPYING (GPL license). If not, see <http://www.gnu.org/licenses/>. */
25/* */
26/* The copyright holder's institutional names and contributor's names may not */
27/* be used to endorse or promote products derived from this software without */
28/* specific prior written permission of the institution or contributor. */
29/******************************************************************************/
30
31#ifndef __SUT_AUX_H__
32#include "XrdSut/XrdSutAux.hh"
33#endif
34
35/******************************************************************************/
36/* */
37/* Provider of random bunches of bits */
38/* */
39/******************************************************************************/
40
41class XrdOucString;
42
44
45public:
46 static bool fgInit;
47
49 virtual ~XrdSutRndm() { }
50
51 // Initializer
52 static bool Init(bool force = 0);
53
54 // Buffer provider
55 static char *GetBuffer(int len, int opt = -1);
56 // String provider
57 static int GetString(int opt, int len, XrdOucString &s);
58 static int GetString(const char *copt, int len, XrdOucString &s);
59 // Integer providers
60 static unsigned int GetUInt();
61 // Random Tag
62 static int GetRndmTag(XrdOucString &rtag);
63}
64;
65
66#endif
67
Definition XrdOucString.hh:254
Definition XrdSutRndm.hh:43
virtual ~XrdSutRndm()
Definition XrdSutRndm.hh:49
static int GetString(int opt, int len, XrdOucString &s)
static bool Init(bool force=0)
static char * GetBuffer(int len, int opt=-1)
static bool fgInit
Definition XrdSutRndm.hh:46
static int GetString(const char *copt, int len, XrdOucString &s)
XrdSutRndm()
Definition XrdSutRndm.hh:48
static unsigned int GetUInt()
static int GetRndmTag(XrdOucString &rtag)