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:
parent
245ed6df64
commit
696ff5bf76
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user