Quark  0.1
FileUtils.h++
Go to the documentation of this file.
1 #ifndef __libquark_util_FileUtils_hxx
2 #define __libquark_util_FileUtils_hxx
3 
4 #include <QByteArray>
5 #include <QString>
6 
7 #include <quark/Quark.h++>
8 
9 namespace quark {
10 namespace util {
11 
18 {
19  public:
20 
27  static QString readFileToString(const QString &path);
28 
36  static void writeStringToFile(const QString &path, const QString &text);
37 
44  static QByteArray computeMD5(const QString &path);
45 
53  static bool createFile(const QString &path);
54 
55  private:
56 
57  FileUtils();
58 
59  Q_DISABLE_COPY(FileUtils);
60 };
61 
62 } // namespace util
63 } // namespace quark
64 
65 #endif // __libquark_util_FileUtils_hxx
A collection of file utility functions.
Definition: FileUtils.h++:17
Definition: BarChartView.h++:6
#define LIBQUARK_API
Definition: Quark.h++:18