Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __CS_CSPLUGINCOMMON_IMAGELOADER_OPTIONSPARSER_H__
00021 #define __CS_CSPLUGINCOMMON_IMAGELOADER_OPTIONSPARSER_H__
00022
00027 #include "csextern.h"
00028 #include "csutil/csstring.h"
00029 #include "csutil/hash.h"
00030
00040 class CS_CRYSTALSPACE_EXPORT csImageLoaderOptionsParser
00041 {
00042 csHash<csString, csString> optValues;
00043 public:
00045 csImageLoaderOptionsParser (const char* options);
00046
00048
00054 bool GetInt (const char* key, int& v) const;
00055 bool GetBool (const char* key, bool& v) const;
00056 bool GetFloat (const char* key, float& v) const;
00057 bool GetString (const char* key, csString& v) const;
00059 };
00060
00063 #endif // __CS_CSPLUGINCOMMON_IMAGELOADER_OPTIONSPARSER_H__