14#include "arcane/utils/ArcanePrecomp.h"
16#include "arcane/utils/String.h"
17#include "arcane/utils/StringBuilder.h"
18#include "arcane/utils/Iostream.h"
19#include "arcane/utils/PlatformUtils.h"
21#include "arcane/Directory.h"
32_appendFile(
const String& directory,
const String& file)
34 StringBuilder out_str(directory);
41 return out_str.toString();
56Directory(
const String& path)
57: m_directory_path(path)
65Directory(
const IDirectory& directory,
const String& sub_path)
66: m_directory_path(_appendFile(directory.path(),sub_path))
74Directory(
const IDirectory& directory)
75: m_directory_path(directory.path())
83Directory(
const Directory& directory)
84: m_directory_path(directory.path())
102 m_directory_path = from.
path();
109const Directory& Directory::
110operator=(
const Directory& from)
112 m_directory_path = from.m_directory_path;
120createDirectory()
const
122 return platform::createDirectory(m_directory_path);
131 return m_directory_path;
138file(
const String& file_name)
const
140 return _appendFile(path(),file_name);
Classe gérant un répertoire.
Interface d'une classe gérant un répertoire.
virtual String path() const =0
Retourne le chemin du répertoire.
Chaîne de caractères unicode.