routeur done
Dependencies: mbed
Fork of APP4 by
readfile.cpp@2:7515831bb5f5, 2014-02-24 (annotated)
- Committer:
- joGenie
- Date:
- Mon Feb 24 14:08:10 2014 +0000
- Revision:
- 2:7515831bb5f5
- Parent:
- 0:71df0feee697
- Child:
- 3:350f07072089
Add file;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
joGenie | 0:71df0feee697 | 1 | #include "readfile.hpp" |
joGenie | 0:71df0feee697 | 2 | |
joGenie | 0:71df0feee697 | 3 | ReadFile::ReadFile() |
joGenie | 0:71df0feee697 | 4 | {} |
joGenie | 0:71df0feee697 | 5 | |
joGenie | 0:71df0feee697 | 6 | void ReadFile::setConfigCoord(Coordinateur *coord, const string filename) |
joGenie | 0:71df0feee697 | 7 | { |
joGenie | 0:71df0feee697 | 8 | string line; |
joGenie | 0:71df0feee697 | 9 | ifstream myfile(filename.c_str()); |
joGenie | 0:71df0feee697 | 10 | if (myfile.is_open()) |
joGenie | 0:71df0feee697 | 11 | { |
joGenie | 0:71df0feee697 | 12 | while (getline(myfile,line)) |
joGenie | 0:71df0feee697 | 13 | { |
joGenie | 0:71df0feee697 | 14 | } |
joGenie | 0:71df0feee697 | 15 | |
joGenie | 0:71df0feee697 | 16 | myfile.close(); |
joGenie | 0:71df0feee697 | 17 | } |
joGenie | 2:7515831bb5f5 | 18 | } |
joGenie | 2:7515831bb5f5 | 19 | |
joGenie | 2:7515831bb5f5 | 20 | void ReadFile::setConfigRouteur(Routeur *rout, const string filename) |
joGenie | 2:7515831bb5f5 | 21 | { |
joGenie | 2:7515831bb5f5 | 22 | string line; |
joGenie | 2:7515831bb5f5 | 23 | ifstream myfile(filename.c_str()); |
joGenie | 2:7515831bb5f5 | 24 | if (myfile.is_open()) |
joGenie | 2:7515831bb5f5 | 25 | { |
joGenie | 2:7515831bb5f5 | 26 | while (getline(myfile,line)) |
joGenie | 2:7515831bb5f5 | 27 | { |
joGenie | 2:7515831bb5f5 | 28 | } |
joGenie | 2:7515831bb5f5 | 29 | |
joGenie | 2:7515831bb5f5 | 30 | myfile.close(); |
joGenie | 2:7515831bb5f5 | 31 | } |
joGenie | 0:71df0feee697 | 32 | } |