mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 21:47:24 +00:00
0545adfac3
Have fun!
20 lines
361 B
C++
20 lines
361 B
C++
#pragma once
|
|
#include <fstream>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
class dConfig {
|
|
public:
|
|
dConfig(const std::string& filepath);
|
|
~dConfig(void);
|
|
|
|
const std::string& GetValue(std::string key);
|
|
|
|
private:
|
|
void ProcessLine(const std::string& line);
|
|
|
|
private:
|
|
std::vector<std::string> m_Keys;
|
|
std::vector<std::string> m_Values;
|
|
std::string m_EmptyString;
|
|
}; |