MiddleWare GUS

Dependents:   MainTaskGus

Committer:
RoHe
Date:
Thu Dec 10 23:28:58 2015 +0000
Revision:
4:a7da6ca6aef2
Parent:
3:d527bae62c60
update Sensors People

Who changed what in which revision?

UserRevisionLine numberNew contents of line
RoHe 0:d1ff330c5128 1 /*
RoHe 0:d1ff330c5128 2
RoHe 0:d1ff330c5128 3 StringManager.h
RoHe 0:d1ff330c5128 4
RoHe 0:d1ff330c5128 5 Only to improve the clarity of main .cpp
RoHe 0:d1ff330c5128 6 This don't have any new classes
RoHe 0:d1ff330c5128 7
RoHe 0:d1ff330c5128 8 This import is use to manage the strings
RoHe 0:d1ff330c5128 9
RoHe 0:d1ff330c5128 10 Last update by RoHe 16/11/2015
RoHe 0:d1ff330c5128 11 */
RoHe 0:d1ff330c5128 12
RoHe 0:d1ff330c5128 13 #include <string.h>
RoHe 1:fd355dc296b1 14 #include "Sensors.h" // se movieron las declaraciones de las variables
RoHe 1:fd355dc296b1 15 //por que decia que se encontraban definidas mas de una vez
RoHe 1:fd355dc296b1 16 #include "Initial.h"
RoHe 0:d1ff330c5128 17
RoHe 1:fd355dc296b1 18 #ifndef STRINGMANAGER_H_
RoHe 1:fd355dc296b1 19 #define STRINGMANAGER_H_
RoHe 1:fd355dc296b1 20
RoHe 4:a7da6ca6aef2 21 extern unsigned int global_people;
RoHe 4:a7da6ca6aef2 22
RoHe 1:fd355dc296b1 23 class StringManager {
RoHe 1:fd355dc296b1 24
RoHe 1:fd355dc296b1 25 public:
RoHe 1:fd355dc296b1 26 StringManager();
RoHe 1:fd355dc296b1 27 bool is_good(void);
RoHe 1:fd355dc296b1 28 int getVar(void);
RoHe 1:fd355dc296b1 29 char* echo(void);
RoHe 1:fd355dc296b1 30 char* processString(char* cadena, char* ipClient);
RoHe 1:fd355dc296b1 31 int stringLenght(char* cadena);
RoHe 1:fd355dc296b1 32 char initialString[100];
RoHe 1:fd355dc296b1 33
RoHe 1:fd355dc296b1 34 private:
RoHe 1:fd355dc296b1 35 int varInt;
RoHe 1:fd355dc296b1 36 char* stringMakerGetLight(char* ipClient);
RoHe 1:fd355dc296b1 37 char* stringMakerGetDoor(char* ipClient);
RoHe 1:fd355dc296b1 38 char* stringMakerGetPresence(char* ipClient);
RoHe 1:fd355dc296b1 39 char* stringMakerGetPeople(char* ipClient);
RoHe 1:fd355dc296b1 40 char* stringMakerGetWindow1(char* ipClient);
RoHe 1:fd355dc296b1 41 char* stringMakerGetWindow2(char* ipClient);
RoHe 1:fd355dc296b1 42 char* stringMakerGetWindow3(char* ipClient);
RoHe 1:fd355dc296b1 43 char* stringMakerGetRoom(char* ipClient);
RoHe 3:d527bae62c60 44 char* convertIC(int val, int base);
RoHe 1:fd355dc296b1 45 };
RoHe 1:fd355dc296b1 46
RoHe 1:fd355dc296b1 47 #endif