ATLAS Offline Software
Loading...
Searching...
No Matches
python.rfio.StatResult Class Reference
Collaboration diagram for python.rfio.StatResult:

Public Member Functions

 __init__ (self)
 __getitem__ (self, idx)
 __setitem__ (self, idx, val)
 __str__ (self)

Public Attributes

int st_mode = 0
int st_ino = 0
int st_dev = 0
int st_nlink = 0
int st_uid = 0
int st_gid = 0
int st_size = 0
int st_atime = 0
int st_mtime = 0
int st_ctime = 0

Private Attributes

list __items = [ i.upper() for i in self.__dict__ if i.startswith('st_') ]

Detailed Description

Definition at line 104 of file rfio.py.

Constructor & Destructor Documentation

◆ __init__()

python.rfio.StatResult.__init__ ( self)

Definition at line 105 of file rfio.py.

105 def __init__(self):
106 self.st_mode = 0
107 self.st_ino = 0
108 self.st_dev = 0
109 self.st_nlink = 0
110 self.st_uid = 0
111 self.st_gid = 0
112 self.st_size = 0
113 self.st_atime = 0
114 self.st_mtime = 0
115 self.st_ctime = 0
116
117 self.__items = [ i.upper() for i in self.__dict__ if i.startswith('st_') ]
118
119

Member Function Documentation

◆ __getitem__()

python.rfio.StatResult.__getitem__ ( self,
idx )

Definition at line 120 of file rfio.py.

120 def __getitem__(self,idx):
121 for i in self.__items:
122 if idx == getattr(statconsts,i):
123 return getattr(self,i.lower())
124 return None
125
126

◆ __setitem__()

python.rfio.StatResult.__setitem__ ( self,
idx,
val )

Definition at line 127 of file rfio.py.

127 def __setitem__(self,idx,val):
128 for i in self.__items:
129 if idx == getattr(statconsts,i):
130 setattr(self,i.lower(),val)
131
132

◆ __str__()

python.rfio.StatResult.__str__ ( self)

Definition at line 133 of file rfio.py.

133 def __str__(self):
134 vals = []
135 for i in range(len(self.__items)):
136 vals.append( self[i] )
137 return str( tuple(vals) )
138
139
140

Member Data Documentation

◆ __items

python.rfio.StatResult.__items = [ i.upper() for i in self.__dict__ if i.startswith('st_') ]
private

Definition at line 117 of file rfio.py.

◆ st_atime

int python.rfio.StatResult.st_atime = 0

Definition at line 113 of file rfio.py.

◆ st_ctime

int python.rfio.StatResult.st_ctime = 0

Definition at line 115 of file rfio.py.

◆ st_dev

int python.rfio.StatResult.st_dev = 0

Definition at line 108 of file rfio.py.

◆ st_gid

int python.rfio.StatResult.st_gid = 0

Definition at line 111 of file rfio.py.

◆ st_ino

int python.rfio.StatResult.st_ino = 0

Definition at line 107 of file rfio.py.

◆ st_mode

int python.rfio.StatResult.st_mode = 0

Definition at line 106 of file rfio.py.

◆ st_mtime

int python.rfio.StatResult.st_mtime = 0

Definition at line 114 of file rfio.py.

◆ st_nlink

int python.rfio.StatResult.st_nlink = 0

Definition at line 109 of file rfio.py.

◆ st_size

int python.rfio.StatResult.st_size = 0

Definition at line 112 of file rfio.py.

◆ st_uid

int python.rfio.StatResult.st_uid = 0

Definition at line 110 of file rfio.py.


The documentation for this class was generated from the following file: