35 #ifndef OPENMS_SYSTEM_FILE_H 36 #define OPENMS_SYSTEM_FILE_H 40 #include <OpenMS/config.h> 63 static String getExecutablePath();
66 static bool exists(
const String& file);
69 static bool empty(
const String& file);
76 static bool remove(
const String& file);
79 static bool removeDirRecursively(
const String& dir_name);
82 static bool removeDir(
const QString& dir_name);
103 static bool readable(
const String& file);
106 static bool writable(
const String& file);
109 static bool isDirectory(
const String& path);
129 static bool fileList(
const String& dir,
const String& file_pattern,
StringList& output,
bool full_path =
false);
155 static String getUniqueName(
bool include_hostname =
true);
158 static String getOpenMSDataPath();
161 static String getOpenMSHomePath();
164 static String getTempDirectory();
171 static String getUserDirectory();
178 static Param getSystemParameters();
209 static const String& getTemporaryFile(
const String& alternative_file =
"");
214 static Param getSystemParameterDefaults_();
217 static bool isOpenMSDataPath_(
const String& path);
244 #endif // OPENMS_SYSTEM_FILE_H A more convenient string class.
Definition: String.h:57
StringList filenames_
Definition: File.h:233
static TemporaryFiles_ temporary_files_
private list of temporary filenames, which are deleted upon program exit
Definition: File.h:238
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Base class for TOPP applications.
Definition: TOPPBase.h:126
Internal helper class, which holds temporary filenames and deletes these file at program exit...
Definition: File.h:223
Basic file handling operations.
Definition: File.h:53
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:74
Management and storage of parameters / INI files.
Definition: Param.h:75