Class managing a directory. More...
#include <arcane/core/Directory.h>
Public Member Functions | |
| Directory (const String &path) | |
| Directory (const Directory &directory) | |
| Directory (const IDirectory &directory, const String &sub_path) | |
| Directory (const IDirectory &directory) | |
| Directory & | operator= (const IDirectory &from) |
| Directory & | operator= (const Directory &from) |
| bool | createDirectory () const override |
| Creates the directory. | |
| String | path () const override |
| Returns the path of the directory. | |
| String | file (const String &file_name) const override |
| Returns the full path of the file file_name in the directory. | |
| Public Member Functions inherited from Arcane::IDirectory | |
| virtual | ~IDirectory ()=default |
| Frees the resources. | |
Class managing a directory.
Definition at line 34 of file Directory.h.
|
explicit |
Definition at line 45 of file Directory.cc.
| Arcane::Directory::Directory | ( | const Directory & | directory | ) |
Definition at line 72 of file Directory.cc.
| Arcane::Directory::Directory | ( | const IDirectory & | directory, |
| const String & | sub_path ) |
Definition at line 54 of file Directory.cc.
| Arcane::Directory::Directory | ( | const IDirectory & | directory | ) |
Definition at line 63 of file Directory.cc.
|
overridevirtual |
Creates the directory.
| true | in case of failure, |
| false | in case of success or if the directory already exists. |
Implements Arcane::IDirectory.
Definition at line 101 of file Directory.cc.
References Arcane::platform::createDirectory().
Referenced by Arcane::SimpleTableReaderWriterUtils::createDirectoryOnlyProcess0().
Returns the full path of the file file_name in the directory.
Implements Arcane::IDirectory.
Definition at line 119 of file Directory.cc.
References path().
Referenced by Arcane::ManualHdf5VariableReader::initialize(), and Arcane::SimpleTableReaderWriterUtils::isFileExist().
| Directory & Arcane::Directory::operator= | ( | const Directory & | from | ) |
Definition at line 91 of file Directory.cc.
| Directory & Arcane::Directory::operator= | ( | const IDirectory & | from | ) |
Definition at line 81 of file Directory.cc.
|
overridevirtual |
Returns the path of the directory.
Implements Arcane::IDirectory.
Definition at line 110 of file Directory.cc.
Referenced by file().