XRootD
XrdSysDir.hh
Go to the documentation of this file.
1
#ifndef __SYS_DIR_H__
2
#define __SYS_DIR_H__
3
/******************************************************************************/
4
/* */
5
/* X r d S y s D i r . h h */
6
/* */
7
/* (c) 2006 G. Ganis (CERN) */
8
/* */
9
/* This file is part of the XRootD software suite. */
10
/* */
11
/* XRootD is free software: you can redistribute it and/or modify it under */
12
/* the terms of the GNU Lesser General Public License as published by the */
13
/* Free Software Foundation, either version 3 of the License, or (at your */
14
/* option) any later version. */
15
/* */
16
/* XRootD is distributed in the hope that it will be useful, but WITHOUT */
17
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
18
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public */
19
/* License for more details. */
20
/* */
21
/* You should have received a copy of the GNU Lesser General Public License */
22
/* along with XRootD in a file called COPYING.LESSER (LGPL license) and file */
23
/* COPYING (GPL license). If not, see <http://www.gnu.org/licenses/>. */
24
/* */
25
/* The copyright holder's institutional names and contributor's names may not */
26
/* be used to endorse or promote products derived from this software without */
27
/* specific prior written permission of the institution or contributor. */
28
/* All Rights Reserved. See XrdInfo.cc for complete License Terms */
29
/******************************************************************************/
30
32
// //
33
// XrdSysDir //
34
// //
35
// Author: G. Ganis, CERN, 2006 //
36
// //
37
// API for handling directories //
38
// //
40
41
#if !defined(WINDOWS)
42
# include <sys/types.h>
43
#else
44
# define uid_t unsigned int
45
# define gid_t unsigned int
46
#endif
47
48
class
XrdSysDir
49
{
50
public
:
51
XrdSysDir
(
const
char
*path);
52
virtual
~XrdSysDir
();
53
54
bool
isValid
() {
return
(dhandle ? 1 : 0); }
55
int
lastError
() {
return
lasterr; }
56
char
*
nextEntry
();
57
58
private
:
59
void
*dhandle;
// Directory handle
60
int
lasterr;
// Error occurred at last operation
61
};
62
#endif
XrdSysDir
Definition:
XrdSysDir.hh:49
XrdSysDir::lastError
int lastError()
Definition:
XrdSysDir.hh:55
XrdSysDir::~XrdSysDir
virtual ~XrdSysDir()
Definition:
XrdSysDir.cc:81
XrdSysDir::isValid
bool isValid()
Definition:
XrdSysDir.hh:54
XrdSysDir::XrdSysDir
XrdSysDir(const char *path)
Definition:
XrdSysDir.cc:51
XrdSysDir::nextEntry
char * nextEntry()
Definition:
XrdSysDir.cc:95
XrdSys
XrdSysDir.hh
Generated by
1.9.1