S5-P05 / ConfigurationFile

Dependencies:   ConfigFile

Dependents:   Ethernet

Revision:
0:1405a58a7e8d
Child:
1:5b6c5c2a33d0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ConfigurationFile.h	Sun Apr 03 15:44:20 2016 +0000
@@ -0,0 +1,36 @@
+#ifndef CONFIGURATION_FILE_H
+#define CONFIGURATION_FILE_H
+
+#include "mbed.h"
+#include "ConfigFile.h"
+#include "ConfigurationFile.h"
+#include "PC_Comm.h"
+#include <string>
+
+class ConfigurationFile{
+    public:
+        ConfigurationFile();
+        ~ConfigurationFile();
+        void readServerEthernetConfiguration();
+        void readNodeEthernetConfiguration();
+        void readConfigurationFile(char *pathName);
+        
+        string getIP();
+        void setMask();
+        string getMask();
+        string getGateway();
+        string getURL();
+        
+    private:
+        ConfigFile cfg;
+        Serial *pc;
+        string ip;
+        string mask;
+        string gateway;
+        string url;
+        void setIP();
+        void setGateway();
+        void setURL();
+};
+
+#endif
\ No newline at end of file