GammaWare
Head Version for release 0.9
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Base.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
* Copyright (C) 2004 by Olivier Stezowski *
3
* stezow(AT)ipnl.in2p3.fr *
4
* *
5
* This program is free software; you can redistribute it and/or modify *
6
* it under the terms of the GNU General Public License as published by *
7
* the Free Software Foundation; either version 2 of the License, or *
8
* (at your option) any later version. *
9
* *
10
* This program is distributed in the hope that it will be useful, *
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13
* GNU General Public License for more details. *
14
* *
15
* You should have received a copy of the GNU General Public License *
16
* along with this program; if not, write to the *
17
* Free Software Foundation, Inc., *
18
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19
***************************************************************************/
20
23
#ifndef ROOT_TSystem
24
#include <TSystem.h>
25
#endif
26
27
#ifndef GWS_BASE_H
28
#include "
Base.h
"
29
#endif
30
31
using namespace
Gws;
32
34
35
/*
36
37
#ifndef SYSERROR
38
#define SYSERROR -1
39
#endif
40
41
// open mode
42
const int IO::kIn = O_RDONLY;
43
const int IO::kOut = O_WRONLY;
44
const int IO::kInOut = O_RDWR;
45
const int IO::kAppend = O_APPEND;
46
const int IO::kCreat = O_CREAT;
47
const int IO::kTrunc = O_TRUNC;
48
49
//seek related
50
const int Seek::kBeg = SEEK_SET;
51
const int Seek::kCur = SEEK_CUR;
52
const int Seek::kEnd = SEEK_END;
53
54
// permisIOns
55
const mode_gw Perm::kUserR = S_IRUSR;
56
const mode_gw Perm::kUserW = S_IWUSR;
57
const mode_gw Perm::kUserX = S_IXUSR;
58
const mode_gw Perm::kUserRWX = S_IRWXU;
59
const mode_gw Perm::kGroupR = S_IRGRP;
60
const mode_gw Perm::kGroupW = S_IWGRP;
61
const mode_gw Perm::kGroupX = S_IXGRP;
62
const mode_gw Perm::kGroupRWX = S_IRWXG;
63
const mode_gw Perm::kWorldR = S_IROTH;
64
const mode_gw Perm::kWorldW = S_IWOTH;
65
const mode_gw Perm::kWorldX = S_IXOTH;
66
const mode_gw Perm::kWorldRWX = S_IRWXO;
67
*/
68
69
Base::Base
()
70
{
71
// Default constructor
72
}
73
74
Base::~Base
()
75
{
76
// Destructor
77
}
78
79
TSystem *
SystemROOT
()
80
{
81
return
gSystem;
82
}
83
84
/*
85
long int Base::MaxLengthFileName()
86
{
87
// static function that gives the maximum length for a file name
88
// it uses the current directory. return value in bytes
89
90
ResetError();
91
return ::pathconf(".",_PC_NAME_MAX) ;
92
}
93
94
long int Base::MaxLengthPath()
95
{
96
// static function that gives the maximum length for a path
97
// it uses the current directory. return value in bytes
98
99
ResetError();
100
return ::pathconf(".",_PC_PATH_MAX);
101
}
102
*/
Gws::Base::Base
Base()
Definition:
Base.cpp:69
Gws::Base::~Base
virtual ~Base()
Definition:
Base.cpp:74
Base.h
interface to the operating system
SystemROOT
TSystem * SystemROOT()
Definition:
Base.cpp:79
src
system
Base.cpp
Generated on Wed Sep 20 2017 17:26:16 for GammaWare by
1.8.7