routeur done

Dependencies:   mbed

Fork of APP4 by Évan Laverdure

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers readfile.cpp Source File

readfile.cpp

00001 #include "readfile.hpp"
00002 
00003 ReadFile::ReadFile()
00004 {}
00005 
00006 bool ReadFile::setConfigCoord(Coordinateur *coord, const string filename)
00007 {
00008     string line;
00009     ifstream myfile(filename.c_str());
00010     if (myfile.is_open())
00011     {
00012         while (getline(myfile,line))
00013         {
00014             if (line[0] != '#')
00015             {
00016                 if (line.find("PANID") != string::npos)
00017                     ;//coord->setPanID(line.substr(
00018             }
00019         }
00020         
00021         myfile.close(); 
00022         
00023         return true;
00024     }  
00025     
00026     return false;  
00027 }
00028 
00029 bool ReadFile::setConfigRouteur(Routeur *rout, const string filename)
00030 {
00031     string line;
00032     ifstream myfile(filename.c_str());
00033     if (myfile.is_open())
00034     {
00035         while (getline(myfile,line))
00036         {
00037         }
00038         
00039         myfile.close(); 
00040         
00041         return true;
00042     } 
00043     
00044     return false;
00045 }