routeur done
Dependencies: mbed
Fork of APP4 by
readfile.cpp
- Committer:
- RufflesAllD
- Date:
- 2014-02-24
- Revision:
- 4:aac38b016952
- Parent:
- 3:350f07072089
File content as of revision 4:aac38b016952:
#include "readfile.hpp" ReadFile::ReadFile() {} bool ReadFile::setConfigCoord(Coordinateur *coord, const string filename) { string line; ifstream myfile(filename.c_str()); if (myfile.is_open()) { while (getline(myfile,line)) { if (line[0] != '#') { if (line.find("PANID") != string::npos) ;//coord->setPanID(line.substr( } } myfile.close(); return true; } return false; } bool ReadFile::setConfigRouteur(Routeur *rout, const string filename) { string line; ifstream myfile(filename.c_str()); if (myfile.is_open()) { while (getline(myfile,line)) { } myfile.close(); return true; } return false; }