| 38 | }; |
| 39 | |
| 40 | class TTempFileHandle: public TTempFile, public TFile { |
| 41 | public: |
| 42 | TTempFileHandle(); |
| 43 | TTempFileHandle(const TString& fname); |
| 44 | |
| 45 | static TTempFileHandle InCurrentDir(const TString& filePrefix = "yandex", const TString& extension = "tmp"); |
| 46 | static TTempFileHandle InDir(const TFsPath& dirPath, const TString& filePrefix = "yandex", const TString& extension = "tmp"); |
| 47 | |
| 48 | private: |
| 49 | TFile CreateFile() const; |
| 50 | }; |
| 51 | |
| 52 | /* |
| 53 | * Creates a unique temporary filename in specified directory. |
no outgoing calls
no test coverage detected