2
0
mirror of https://github.com/team2059/Zaphod synced 2025-01-07 22:14:14 -05:00

Config compiles now (untested)

This commit is contained in:
Austen Adler 2014-08-31 17:00:57 -04:00
parent 245ed6df64
commit 696ff5bf76

View File

@ -1,6 +1,6 @@
#include "HHBase.h" #include "HHBase.h"
#include <iostream> #include <iostream>
#include <ifstream.h> #include <fstream>
#include <stdexcept> #include <stdexcept>
#include <map> #include <map>
HHBase::HHBase(): HHBase::HHBase():
@ -15,8 +15,8 @@ void HHBase::RobotInit(){
} }
} }
//Config testing //Config testing
void parse(std::ifstream & cfgfile){
std::map<std::string, std::string> options; std::map<std::string, std::string> options;
void parse(std::ifstream & cfgfile){
std::string id, eq, val; std::string id, eq, val;
while(cfgfile >> id >> eq >> val){ while(cfgfile >> id >> eq >> val){
if (id[0] == '#') continue; if (id[0] == '#') continue;