routeur done
Dependencies: mbed
Fork of APP4 by
Revision 0:71df0feee697, committed 2014-02-23
- Comitter:
- joGenie
- Date:
- Sun Feb 23 23:32:09 2014 +0000
- Child:
- 1:2834a4d9fa61
- Child:
- 2:7515831bb5f5
- Commit message:
- First time;
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coordianteur.cpp Sun Feb 23 23:32:09 2014 +0000 @@ -0,0 +1,5 @@ +#include "coordinateur.hpp" + +Coordinateur::Coordinateur() +{ +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coordinateur.hpp Sun Feb 23 23:32:09 2014 +0000 @@ -0,0 +1,18 @@ +#ifndef COORDINATEUR_HPP +#define COORDINATEUR_HPP + +#include <string> + +using namespace std; + +class Coordinateur +{ +public: + // Constructeur + Coordinateur(); + +private: + string pan; +}; + +#endif
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sun Feb 23 23:32:09 2014 +0000 @@ -0,0 +1,11 @@ +#include "mbed.h" +#include "readfile.hpp" + +LocalFileSystem local("local"); + +int main() +{ + + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sun Feb 23 23:32:09 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/8e73be2a2ac1 \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/readfile.cpp Sun Feb 23 23:32:09 2014 +0000 @@ -0,0 +1,18 @@ +#include "readfile.hpp" + +ReadFile::ReadFile() +{} + +void ReadFile::setConfigCoord(Coordinateur *coord, const string filename) +{ + string line; + ifstream myfile(filename.c_str()); + if (myfile.is_open()) + { + while (getline(myfile,line)) + { + } + + myfile.close(); + } +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/readfile.hpp Sun Feb 23 23:32:09 2014 +0000 @@ -0,0 +1,28 @@ +#ifndef READFILE_HPP +#define READFILE_HPP + +#include <iostream> +#include <fstream> +#include <string> + +#include "mbed.h" +#include "coordinateur.hpp" +#include "routeur.hpp" + +using namespace std; + +class ReadFile +{ +public: + + // Constructeur + ReadFile(); + + //Set information of the coordinateur + void setConfigCoord(Coordinateur *coord, const string filename); + + //Set information of the routeur + void setConfigRouteur(Routeur *rout, const string filename); +}; + +#endif \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/routeur.hpp Sun Feb 23 23:32:09 2014 +0000 @@ -0,0 +1,17 @@ +#ifndef ROUTEUR_HPP +#define ROUTEUR_HPP + +#include <string> + +using namespace std; + +class Routeur +{ +public: + // Constructeur + Routeur(); + +private: +}; + +#endif