mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-20 22:08:22 +00:00
Moved some around, more renames
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
#ifndef INI__H
|
||||
#define INI__H
|
||||
|
||||
#include <string>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <vector>
|
||||
|
||||
struct iniData
|
||||
{
|
||||
std::string option;
|
||||
std::string param;
|
||||
};
|
||||
|
||||
class INIParser
|
||||
{
|
||||
public:
|
||||
INIParser(const char *filename);
|
||||
~INIParser();
|
||||
void Parse();
|
||||
void ReadLine(FILE *fp, char *Option, char *Param);
|
||||
|
||||
void AddOption(std::string option, std::string param);
|
||||
std::string GetOption(std::string option);
|
||||
|
||||
|
||||
protected:
|
||||
char file[128];
|
||||
std::vector<iniData> options;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user