routeur done

Dependencies:   mbed

Fork of APP4 by Évan Laverdure

Files at this revision

API Documentation at this revision

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

coordianteur.cpp Show annotated file Show diff for this revision Revisions of this file
coordinateur.hpp Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
readfile.cpp Show annotated file Show diff for this revision Revisions of this file
readfile.hpp Show annotated file Show diff for this revision Revisions of this file
routeur.hpp Show annotated file Show diff for this revision Revisions of this file
--- /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