ATLAS Offline Software
Loading...
Searching...
No Matches
python.AtlCoolTool.Info Class Reference
Inheritance diagram for python.AtlCoolTool.Info:
Collaboration diagram for python.AtlCoolTool.Info:

Public Member Functions

 __init__ (self, format=None)
 __str__ (self)

Public Attributes

 format = format

Detailed Description

This class extends a dictionary with a format string for its representation.
It is used as the return value for the inspection commands, such that one
can both query for the inspected object's information:

  res = tool.ls( '/a' )
  print (res['name'])
  
as well as obtain a standard printout of the information:

  print (res)

Definition at line 127 of file AtlCoolTool.py.

Constructor & Destructor Documentation

◆ __init__()

python.AtlCoolTool.Info.__init__ ( self,
format = None )

Definition at line 141 of file AtlCoolTool.py.

141 def __init__( self, format = None ):
142 super( Info, self ).__init__()
143 self.format = format
144

Member Function Documentation

◆ __str__()

python.AtlCoolTool.Info.__str__ ( self)

Definition at line 145 of file AtlCoolTool.py.

145 def __str__( self ):
146 if self.format is None:
147 return super( Info, self ).__str__()
148 else:
149 return self.format % self
150
151

Member Data Documentation

◆ format

python.AtlCoolTool.Info.format = format

Definition at line 143 of file AtlCoolTool.py.


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