xrootd
Main Page
Namespaces
Classes
Files
File List
File Members
src
XrdPosix
XrdPosixXrootdPath.hh
Go to the documentation of this file.
1
#ifndef __XRDPOSIXXROOTDPATH_HH__
2
#define __XRDPOSIXXROOTDPATH_HH__
3
/******************************************************************************/
4
/* */
5
/* X r d P o s i x X r o o t d P a t h . h h */
6
/* */
7
/* (c) 2011 by the Board of Trustees of the Leland Stanford, Jr., University */
8
/* All Rights Reserved */
9
/* Produced by Andrew Hanushevsky for Stanford University under contract */
10
/* DE-AC02-76-SFO0515 with the Department of Energy */
11
/******************************************************************************/
12
13
class
XrdPosixXrootPath
14
{
15
public
:
16
17
void
CWD
(
const
char
*path);
18
19
char
*
URL
(
const
char
*path,
char
*buff,
int
blen);
20
21
XrdPosixXrootPath
();
22
~XrdPosixXrootPath
();
23
24
private
:
25
26
struct
xpath
27
{
struct
xpath
*
next
;
28
const
char
*
server
;
29
int
servln
;
30
const
char
*
path
;
31
int
plen
;
32
const
char
*
nath
;
33
int
nlen
;
34
35
xpath
(
struct
xpath
*cur,
36
const
char
*pServ,
37
const
char
*pPath,
38
const
char
*pNath) :
next
(cur),
39
server
(pServ),
40
servln
(strlen(pServ)),
41
path(pPath),
42
plen
(strlen(pPath)),
43
nath
(pNath),
44
nlen
(pNath ? strlen(pNath) : 0) {}
45
~xpath
() {}
46
};
47
48
struct
xpath
*
xplist
;
49
char
*
pBase
;
50
char
*
cwdPath
;
51
int
cwdPlen
;
52
};
53
#endif
Generated by
1.8.1.2