summaryrefslogtreecommitdiff
path: root/tools.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools.h')
-rw-r--r--tools.h62
1 files changed, 31 insertions, 31 deletions
diff --git a/tools.h b/tools.h
index 02af2b0..76a806a 100644
--- a/tools.h
+++ b/tools.h
@@ -1,32 +1,32 @@
-#include <vector>
-#include <string>
-
-using namespace std;
-
-//Filesystem Functions
-bool CreateDirectory(string dir);
-bool FileExists(string filename, bool isImage = true);
-bool CheckDirExists(const char* dirName);
-void DeleteFile(string filename);
-void DeleteDirectory(string dirname);
-string TwoFoldersHigher(string folder);
-
-//String Functions
-string &ltrim(string &s);
-string &rtrim(string &s);
-string &trim(string &s);
-void toLower(string &s);
-bool isNumber(const string& s);
-string replaceString(string content, string search, string repl);
-
-string getRecPath(const cRecording *rec);
-
-class splitstring : public string {
- vector<string> flds;
-public:
- splitstring(const char *s) : string(s) { };
- vector<string>& split(char delim, int rep=0);
-};
-
-//Image Functions
+#include <vector>
+#include <string>
+
+using namespace std;
+
+//Filesystem Functions
+bool CreateDirectory(string dir);
+bool FileExists(string filename, bool isImage = true);
+bool CheckDirExists(const char* dirName);
+void DeleteFile(string filename);
+void DeleteDirectory(string dirname);
+string TwoFoldersHigher(string folder);
+
+//String Functions
+string &ltrim(string &s);
+string &rtrim(string &s);
+string &trim(string &s);
+void toLower(string &s);
+bool isNumber(const string& s);
+string replaceString(string content, string search, string repl);
+
+string getRecPath(const cRecording *rec);
+
+class splitstring : public string {
+ vector<string> flds;
+public:
+ splitstring(const char *s) : string(s) { };
+ vector<string>& split(char delim, int rep=0);
+};
+
+//Image Functions
void CreateThumbnail(string sourcePath, string destPath, int origWidth, int origHeight, int shrinkFactor); \ No newline at end of file