diff options
author | geronimo <geronimo013@gmx.de> | 2012-08-02 08:07:59 +0200 |
---|---|---|
committer | geronimo <geronimo013@gmx.de> | 2012-08-02 08:07:59 +0200 |
commit | adb7d83292e1502ca7c21a123b104412cb22d160 (patch) | |
tree | ecb448802df0d35f1c3289c4f0e7c246ee5c021a /libs/util/include/util.h | |
parent | 5416f2e39cfedc474c87e0a3eeff067fbb25dceb (diff) | |
download | cmp-adb7d83292e1502ca7c21a123b104412cb22d160.tar.gz cmp-adb7d83292e1502ca7c21a123b104412cb22d160.tar.bz2 |
worked out processing of some meta data, extended json list elements
Diffstat (limited to 'libs/util/include/util.h')
-rw-r--r-- | libs/util/include/util.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/util/include/util.h b/libs/util/include/util.h index 023c435..1f92380 100644 --- a/libs/util/include/util.h +++ b/libs/util/include/util.h @@ -26,6 +26,7 @@ #define UTIL_H #include <stdlib.h> +#include <string> #define FREE(m) { void *_tmp_ = m; m = NULL; free(_tmp_); } #define TO_STRING(s) #s #define EVER ;; @@ -37,6 +38,10 @@ extern const char *skipWhitespace(const char *Buffer); extern const char *getWord(char *buf, int bufSize, const char *src); extern const char *restOfLine(char *buf, int bufSize, const char *src); +extern double parseAspect(const char *input, const char **next = NULL); +extern double parseAspect(const std::string &input, const char **next = NULL); +extern long parseInt(const char *input, const char **next = NULL); +extern long parseInt(const std::string &input, const char **next = NULL); #endif /* UTIL_H */ |