|
Gaudi Framework, version v21r11 |
| Home | Generated: 30 Sep 2010 |
Public Member Functions | |
| def | __init__ |
| def | __str__ |
| def | __del__ |
| def | __getattr__ |
Public Attributes | |
| file | |
| name | |
Private Attributes | |
| _keep | |
Small class for temporary files. When instantiated, it creates a temporary directory and the instance behaves as the string containing the directory name. When the instance goes out of scope, it removes all the content of the temporary directory (automatic clean-up).
Definition at line 182 of file GaudiTest.py.
| def GaudiTest::TempFile::__init__ | ( | self, | ||
suffix = '', |
||||
prefix = 'tmp', |
||||
dir = None, |
||||
text = False, |
||||
keep = False | ||||
| ) |
| def GaudiTest::TempFile::__str__ | ( | self | ) |
| def GaudiTest::TempFile::__del__ | ( | self | ) |
Definition at line 200 of file GaudiTest.py.
00200 : 00201 if self.file: 00202 self.file.close() 00203 if self.name and not self._keep: 00204 os.remove(self.name) 00205 def __getattr__(self,attr):
| def GaudiTest::TempFile::__getattr__ | ( | self, | ||
| attr | ||||
| ) |
Definition at line 190 of file GaudiTest.py.
Definition at line 191 of file GaudiTest.py.
GaudiTest::TempFile::_keep [private] |
Definition at line 192 of file GaudiTest.py.