GaudiTest::TempFile Class Reference
List of all members.
Detailed Description
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.
Member Function Documentation
| def GaudiTest::TempFile::__del__ |
( |
|
self |
) |
|
Definition at line 200 of file GaudiTest.py.
00201 :
00202 if self.file:
00203 self.file.close()
00204 if self.name and not self._keep:
00205 os.remove(self.name)
| def GaudiTest::TempFile::__getattr__ |
( |
|
self, |
|
|
|
attr | |
|
) |
| | |
Definition at line 206 of file GaudiTest.py.
00207 :
00208 return getattr(self.file,attr)
| def GaudiTest::TempFile::__init__ |
( |
|
self, |
|
|
|
suffix = '', |
|
|
|
prefix = 'tmp', |
|
|
|
dir = None, |
|
|
|
text = False, |
|
|
|
keep = False | |
|
) |
| | |
| def GaudiTest::TempFile::__str__ |
( |
|
self |
) |
|
Definition at line 197 of file GaudiTest.py.
00198 :
00199 return self.name
Member Data Documentation
The documentation for this class was generated from the following file:
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v22r0/GaudiPolicy/qmtest_classes/GaudiTest.py