OpenGTA/read_ini.h
Anonymous Maarten e20673c2cd 2007-04-16
2015-12-03 01:37:37 +01:00

29 lines
669 B
C++

#ifndef READ_INI_H
#define READ_INI_H
#include <string>
#include <map>
#include <stdlib.h>
#include <physfs.h>
namespace OpenGTA {
class ScriptParser {
public:
ScriptParser(const std::string &file);
virtual ~ScriptParser();
void loadLevel(PHYSFS_uint32 level);
private:
typedef std::map<PHYSFS_uint32, PHYSFS_sint64> LevelMapType;
LevelMapType levels;
PHYSFS_file* fd;
PHYSFS_sint64 sectionEndOffset(PHYSFS_sint64 start);
protected:
std::string section_info;
std::string section_vars;
virtual void acceptDefinition(const char*);
virtual void acceptCommand(const char*);
};
}
#endif