Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

filesystem.h
Go to the documentation of this file.
1 
32 #pragma once
33 
34 #include <ogdf/basic/List.h>
35 
36 namespace ogdf {
37 
42 
44 enum class FileType {
45  Entry,
46  File,
47  Directory
48 };
49 
51 OGDF_DEPRECATED("Please use another library (or C++17) for filesystem functions.")
52 OGDF_EXPORT bool isFile(const char *fileName);
53 
55 OGDF_DEPRECATED("Please use another library (or C++17) for filesystem functions.")
56 OGDF_EXPORT bool isDirectory(const char *fileName);
57 
59 OGDF_DEPRECATED("Please use another library (or C++17) for filesystem functions.")
60 OGDF_EXPORT bool changeDir(const char *dirName);
61 
63 
67 OGDF_DEPRECATED("Please use another library (or C++17) for filesystem functions.")
68 OGDF_EXPORT void getFiles(const char *dirName,
69  List<string> &files,
70  const char *pattern = "*");
71 
73 
77 OGDF_DEPRECATED("Please use another library (or C++17) for filesystem functions.")
78 OGDF_EXPORT void getFilesAppend(const char *dirName,
79  List<string> &files,
80  const char *pattern = "*");
81 
83 
87 OGDF_DEPRECATED("Please use another library (or C++17) for filesystem functions.")
88 OGDF_EXPORT void getSubdirs(const char *dirName,
89  List<string> &subdirs,
90  const char *pattern = "*");
91 
93 
97 OGDF_DEPRECATED("Please use another library (or C++17) for filesystem functions.")
98 OGDF_EXPORT void getSubdirsAppend(const char *dirName,
99  List<string> &subdirs,
100  const char *pattern = "*");
101 
103 
108 OGDF_DEPRECATED("Please use another library (or C++17) for filesystem functions.")
109 OGDF_EXPORT void getEntries(const char *dirName,
110  List<string> &entries,
111  const char *pattern = "*");
112 
114 
119 OGDF_DEPRECATED("Please use another library (or C++17) for filesystem functions.")
120 OGDF_EXPORT void getEntriesAppend(const char *dirName,
121  List<string> &entries,
122  const char *pattern = "*");
123 
125 
129 OGDF_DEPRECATED("Please use another library (or C++17) for filesystem functions.")
130 OGDF_EXPORT void getEntries(const char *dirName,
131  FileType t,
132  List<string> &entries,
133  const char *pattern = "*");
134 
136 
140 OGDF_DEPRECATED("Please use another library (or C++17) for filesystem functions.")
141 OGDF_EXPORT void getEntriesAppend(const char *dirName,
142  FileType t,
143  List<string> &entries,
144  const char *pattern = "*");
145 
147 
148 }
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
bool isFile(const char *fileName)
Returns true iff fileName is a regular file (not a directory).
void getSubdirsAppend(const char *dirName, List< string > &subdirs, const char *pattern="*")
Appends to subdirs the list of directories contained in directory dirName.
FileType
The type of an entry in a directory.
Definition: filesystem.h:44
file or directory
void getSubdirs(const char *dirName, List< string > &subdirs, const char *pattern="*")
Returns in subdirs the list of directories contained in directory dirName.
bool changeDir(const char *dirName)
Changes current directory to dirName; returns true if successful.
void getEntriesAppend(const char *dirName, List< string > &entries, const char *pattern="*")
Appends to entries the list of all entries contained in directory dirName.
Doubly linked lists (maintaining the length of the list).
Definition: List.h:39
void getEntries(const char *dirName, List< string > &entries, const char *pattern="*")
Returns in entries the list of all entries contained in directory dirName.
#define OGDF_DEPRECATED(reason)
Mark a class / member / function as deprecated.
Definition: config.h:118
void getFiles(const char *dirName, List< string > &files, const char *pattern="*")
Returns in files the list of files in directory dirName.
The namespace for all OGDF objects.
void getFilesAppend(const char *dirName, List< string > &files, const char *pattern="*")
Appends to files the list of files in directory dirName.
bool isDirectory(const char *fileName)
Returns true iff fileName is a directory.
Declaration of doubly linked lists and iterators.