|
|
|||
Warning, file /include/xrootd/XrdPosix/XrdPosixXrootdPath.hh was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 #ifndef __XRDPOSIXXROOTDPATH_HH__ 0002 #define __XRDPOSIXXROOTDPATH_HH__ 0003 /******************************************************************************/ 0004 /* */ 0005 /* X r d P o s i x X r o o t d P a t h . h h */ 0006 /* */ 0007 /* (c) 2011 by the Board of Trustees of the Leland Stanford, Jr., University */ 0008 /* All Rights Reserved */ 0009 /* Produced by Andrew Hanushevsky for Stanford University under contract */ 0010 /* DE-AC02-76-SFO0515 with the Department of Energy */ 0011 /* */ 0012 /* This file is part of the XRootD software suite. */ 0013 /* */ 0014 /* XRootD is free software: you can redistribute it and/or modify it under */ 0015 /* the terms of the GNU Lesser General Public License as published by the */ 0016 /* Free Software Foundation, either version 3 of the License, or (at your */ 0017 /* option) any later version. */ 0018 /* */ 0019 /* XRootD is distributed in the hope that it will be useful, but WITHOUT */ 0020 /* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */ 0021 /* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public */ 0022 /* License for more details. */ 0023 /* */ 0024 /* You should have received a copy of the GNU Lesser General Public License */ 0025 /* along with XRootD in a file called COPYING.LESSER (LGPL license) and file */ 0026 /* COPYING (GPL license). If not, see <http://www.gnu.org/licenses/>. */ 0027 /* */ 0028 /* The copyright holder's institutional names and contributor's names may not */ 0029 /* be used to endorse or promote products derived from this software without */ 0030 /* specific prior written permission of the institution or contributor. */ 0031 /******************************************************************************/ 0032 0033 #include <cstring> 0034 0035 class XrdPosixXrootPath 0036 { 0037 public: 0038 0039 static bool AddProto(const char *proto); 0040 0041 void CWD(const char *path); 0042 0043 static 0044 const char *P2L(const char *who, const char *inP, 0045 char *&relP, bool ponly=false); 0046 0047 char *URL(const char *path, char *buff, int blen); 0048 0049 XrdPosixXrootPath(); 0050 ~XrdPosixXrootPath(); 0051 0052 private: 0053 0054 struct xpath 0055 {struct xpath *next; 0056 const char *server; 0057 int servln; 0058 const char *path; 0059 int plen; 0060 const char *nath; 0061 int nlen; 0062 0063 xpath(struct xpath *cur, 0064 const char *pServ, 0065 const char *pPath, 0066 const char *pNath) : next(cur), 0067 server(pServ), 0068 servln(strlen(pServ)), 0069 path(pPath), 0070 plen(strlen(pPath)), 0071 nath(pNath), 0072 nlen(pNath ? strlen(pNath) : 0) {} 0073 ~xpath() {} 0074 }; 0075 0076 struct xpath *xplist; 0077 char *pBase; 0078 char *cwdPath; 0079 int cwdPlen; 0080 }; 0081 #endif
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|