|
CEF3 C++ API Docs - Version 75.1.4+g4210896+chromium-75.0.3770.100 | ||||||
FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An object representing a temporary / scratch directory that should be cleaned up (recursively) when this object goes out of scope. Note that since deletion occurs during the destructor, no further error handling is possible if the directory fails to be deleted. As a result, deletion is not guaranteed by this class. Multiple calls to the methods which establish a temporary directory (CreateUniqueTempDir, CreateUniqueTempDirUnderPath, and Set) must have intervening calls to Delete or Take, or the calls will fail.
Constructor Summary | |
CefScopedTempDir()
No directory is owned/created initially. |
|
~CefScopedTempDir()
Recursively delete path. |
Method Summary | |
bool |
CreateUniqueTempDir() WARN_UNUSED_RESULT
Creates a unique directory in TempPath, and takes ownership of it. |
bool |
CreateUniqueTempDirUnderPath( const CefString& path ) WARN_UNUSED_RESULT
Creates a unique directory under a given path, and takes ownership of it. |
bool |
Delete() WARN_UNUSED_RESULT
Deletes the temporary directory wrapped by this object. |
const CefString& |
GetPath() const
Returns the path to the created directory. |
bool |
IsEmpty() const
Returns true if path_ is empty. |
bool |
IsValid() const
Returns true if path_ is non-empty and exists. |
bool |
Set( const CefString& path ) WARN_UNUSED_RESULT
Takes ownership of directory at |path|, creating it if necessary. |
CefString |
Take()
Caller takes ownership of the temporary directory so it won't be destroyed when this object goes out of scope. |
Constructor Detail |
public CefScopedTempDir();
public ~CefScopedTempDir();
Method Detail |
public bool CreateUniqueTempDir() WARN_UNUSED_RESULT;
public bool CreateUniqueTempDirUnderPath( const CefString& path ) WARN_UNUSED_RESULT;
public bool Delete() WARN_UNUSED_RESULT;
public const CefString& GetPath() const;
public bool IsEmpty() const;
public bool IsValid() const;
public bool Set( const CefString& path ) WARN_UNUSED_RESULT;
public CefString Take();
|
CEF3 C++ API Docs - Version 75.1.4+g4210896+chromium-75.0.3770.100 | ||||||
FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |