0fa021dc364864697bf864c1ecb8892e975184bc
1 /**
2 * Copyright (C) ARM Limited 2010-2012. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
9 #ifndef OLY_UTILITY_H
10 #define OLY_UTILITY_H
12 #ifdef WIN32
13 #define PATH_SEPARATOR '\\'
14 #else
15 #define PATH_SEPARATOR '/'
16 #endif
18 class OlyUtility {
19 public:
20 OlyUtility() {};
21 ~OlyUtility() {};
22 void stringToLower(char* string);
23 int getApplicationFullPath(char* path, int sizeOfPath);
24 char* readFromDisk(const char* file, unsigned int *size = NULL, bool appendNull = true);
25 int writeToDisk(const char* path, const char* file);
26 int appendToDisk(const char* path, const char* file);
27 int copyFile(const char * srcFile, const char * dstFile);
28 const char* getFilePart(const char* path);
29 char* getPathPart(char* path);
30 private:
31 };
33 extern OlyUtility* util;
35 #endif // OLY_UTILITY_H