GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Base.h
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 #ifndef GWS_BASE_H
21 #define GWS_BASE_H
22 
28 #ifndef ROOT_Rtypes
29 #include <Rtypes.h>
30 #endif
31 
32 class TSystem;
33 
35 
45 namespace Gws
46 {
47 
48 /*
49 struct IO
50 {
51 // open mode for IO
52  static const int kIn; // read only
53  static const int kOut; // write only
54  static const int kInOut; // read and write
55  static const int kAppend; // append mode
56  static const int kCreat; // if the file does't exist it will be creat
57  static const int kTrunc; // length of the file truncated to 0
58 };
59 
60 
61 struct Seek
62 {
63 // to seek
64  static const int kBeg; // seek from the beginning
65  static const int kCur; // seek from the current position
66  static const int kEnd; // seek from the end
67 };
68 
69 struct Perm
70 {
71 // to set permission
72  static const mode_gw kUserR;
73  static const mode_gw kUserW;
74  static const mode_gw kUserX;
75  static const mode_gw kUserRWX;
76  static const mode_gw kGroupR;
77  static const mode_gw kGroupW;
78  static const mode_gw kGroupX;
79  static const mode_gw kGroupRWX;
80  static const mode_gw kWorldR;
81  static const mode_gw kWorldW;
82  static const mode_gw kWorldX;
83  static const mode_gw kWorldRWX;
84 };
85 */
86 
88 
91 class Base
92 {
93 protected:
94 
95 public:
96  Base();
97  virtual ~Base();
98 
99  TSystem *SystemROOT();
100 
102 
105  // static long int MaxLengthPath();
106  // static long int MaxLengthFileName();
107 };
108 
109 // Base inline members ////////////////////////////////////////////////////////
112 
113 } // namespace Gws
114 
115 
116 
117 #endif
Base()
Definition: Base.cpp:69
virtual ~Base()
Definition: Base.cpp:74
TSystem * SystemROOT()
Interface to the operating system.
Definition: Base.h:91