Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
Directory.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2022 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7/*---------------------------------------------------------------------------*/
8/* Directory.h (C) 2000-2016 */
9/* */
10/* Gestion d'un répertoire. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_DIRECTORY_H
13#define ARCANE_DIRECTORY_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/IDirectory.h"
18#include "arcane/utils/String.h"
19
20/*---------------------------------------------------------------------------*/
21/*---------------------------------------------------------------------------*/
22
23ARCANE_BEGIN_NAMESPACE
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
31class ARCANE_CORE_EXPORT Directory
32: public IDirectory
33{
34 public:
35
36 Directory();
37 explicit Directory(const String& path);
38 Directory(const Directory& directory);
39 Directory(const IDirectory& directory,const String& sub_path);
40 Directory(const IDirectory& directory);
41 virtual ~Directory();
42
43 public:
44
45 const Directory& operator=(const IDirectory& from);
46 const Directory& operator=(const Directory& from);
47
48 public:
49
50 virtual bool createDirectory() const;
51 virtual String path() const;
52 virtual String file(const String& file_name) const;
53
54 private:
55
56 String m_directory_path;
57};
58
59/*---------------------------------------------------------------------------*/
60/*---------------------------------------------------------------------------*/
61
62ARCANE_END_NAMESPACE
63
64/*---------------------------------------------------------------------------*/
65/*---------------------------------------------------------------------------*/
66
67#endif
68
Classe gérant un répertoire.
Definition Directory.h:33
Interface d'une classe gérant un répertoire.
Definition IDirectory.h:31
virtual bool createDirectory() const =0
Créé le répertoire.
virtual String file(const String &file_name) const =0
Retourne le chemin complet du fichier file_name dans le répertoire.
virtual String path() const =0
Retourne le chemin du répertoire.
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition Lima.cc:120
Chaîne de caractères unicode.