Sensos Module Updated

Dependents:   SmartLabProyect

Fork of Middleware by Roberto Herrera

Revision:
1:fd355dc296b1
Parent:
0:d1ff330c5128
diff -r d1ff330c5128 -r fd355dc296b1 StringManager.h
--- a/StringManager.h	Sat Dec 05 17:43:29 2015 +0000
+++ b/StringManager.h	Wed Dec 09 04:44:37 2015 +0000
@@ -11,6 +11,34 @@
 */
 
 #include <string.h>
+#include "Sensors.h" // se movieron las declaraciones de las variables 
+//por que decia que se encontraban definidas mas de una vez
+#include "Initial.h"
 
-static char * joinString(char* str1, char* str2, char* str3);
-static void splitString(char* str1); // it mus return seven strings
\ No newline at end of file
+#ifndef STRINGMANAGER_H_
+#define STRINGMANAGER_H_
+
+class StringManager {
+   
+public:  
+    StringManager();    
+    bool is_good(void);
+    int getVar(void);
+    char* echo(void);    
+    char* processString(char* cadena, char* ipClient);
+    int stringLenght(char* cadena);
+    char initialString[100];
+    
+private:  
+     int varInt; 
+     char* stringMakerGetLight(char* ipClient);
+     char* stringMakerGetDoor(char* ipClient);
+     char* stringMakerGetPresence(char* ipClient);
+     char* stringMakerGetPeople(char* ipClient);
+     char* stringMakerGetWindow1(char* ipClient);
+     char* stringMakerGetWindow2(char* ipClient);
+     char* stringMakerGetWindow3(char* ipClient);
+     char* stringMakerGetRoom(char* ipClient);
+};
+
+#endif
\ No newline at end of file