ATLAS Offline Software
Public Member Functions | Public Attributes | Private Attributes | List of all members
python.rfio.StatResult Class Reference
Collaboration diagram for python.rfio.StatResult:

Public Member Functions

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

Public Attributes

 st_mode
 
 st_ino
 
 st_dev
 
 st_nlink
 
 st_uid
 
 st_gid
 
 st_size
 
 st_atime
 
 st_mtime
 
 st_ctime
 

Private Attributes

 __items
 

Detailed Description

Definition at line 106 of file rfio.py.

Constructor & Destructor Documentation

◆ __init__()

def python.rfio.StatResult.__init__ (   self)

Definition at line 107 of file rfio.py.

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

Member Function Documentation

◆ __getitem__()

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

Definition at line 122 of file rfio.py.

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

◆ __setitem__()

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

Definition at line 129 of file rfio.py.

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

◆ __str__()

def python.rfio.StatResult.__str__ (   self)

Definition at line 135 of file rfio.py.

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

Member Data Documentation

◆ __items

python.rfio.StatResult.__items
private

Definition at line 119 of file rfio.py.

◆ st_atime

python.rfio.StatResult.st_atime

Definition at line 115 of file rfio.py.

◆ st_ctime

python.rfio.StatResult.st_ctime

Definition at line 117 of file rfio.py.

◆ st_dev

python.rfio.StatResult.st_dev

Definition at line 110 of file rfio.py.

◆ st_gid

python.rfio.StatResult.st_gid

Definition at line 113 of file rfio.py.

◆ st_ino

python.rfio.StatResult.st_ino

Definition at line 109 of file rfio.py.

◆ st_mode

python.rfio.StatResult.st_mode

Definition at line 108 of file rfio.py.

◆ st_mtime

python.rfio.StatResult.st_mtime

Definition at line 116 of file rfio.py.

◆ st_nlink

python.rfio.StatResult.st_nlink

Definition at line 111 of file rfio.py.

◆ st_size

python.rfio.StatResult.st_size

Definition at line 114 of file rfio.py.

◆ st_uid

python.rfio.StatResult.st_uid

Definition at line 112 of file rfio.py.


The documentation for this class was generated from the following file:
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
python.Bindings.__setitem__
__setitem__
Definition: Control/AthenaPython/python/Bindings.py:771
str
Definition: BTagTrackIpAccessor.cxx:11
python.Bindings.__getitem__
__getitem__
Definition: Control/AthenaPython/python/Bindings.py:779