MiddleWare GUS

Dependents:   MainTaskGus

Committer:
RoHe
Date:
Wed Dec 09 04:44:37 2015 +0000
Revision:
1:fd355dc296b1
Parent:
0:d1ff330c5128
Child:
3:d527bae62c60
ok

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 1:fd355dc296b1 21 class StringManager {
RoHe 1:fd355dc296b1 22
RoHe 1:fd355dc296b1 23 public:
RoHe 1:fd355dc296b1 24 StringManager();
RoHe 1:fd355dc296b1 25 bool is_good(void);
RoHe 1:fd355dc296b1 26 int getVar(void);
RoHe 1:fd355dc296b1 27 char* echo(void);
RoHe 1:fd355dc296b1 28 char* processString(char* cadena, char* ipClient);
RoHe 1:fd355dc296b1 29 int stringLenght(char* cadena);
RoHe 1:fd355dc296b1 30 char initialString[100];
RoHe 1:fd355dc296b1 31
RoHe 1:fd355dc296b1 32 private:
RoHe 1:fd355dc296b1 33 int varInt;
RoHe 1:fd355dc296b1 34 char* stringMakerGetLight(char* ipClient);
RoHe 1:fd355dc296b1 35 char* stringMakerGetDoor(char* ipClient);
RoHe 1:fd355dc296b1 36 char* stringMakerGetPresence(char* ipClient);
RoHe 1:fd355dc296b1 37 char* stringMakerGetPeople(char* ipClient);
RoHe 1:fd355dc296b1 38 char* stringMakerGetWindow1(char* ipClient);
RoHe 1:fd355dc296b1 39 char* stringMakerGetWindow2(char* ipClient);
RoHe 1:fd355dc296b1 40 char* stringMakerGetWindow3(char* ipClient);
RoHe 1:fd355dc296b1 41 char* stringMakerGetRoom(char* ipClient);
RoHe 1:fd355dc296b1 42 };
RoHe 1:fd355dc296b1 43
RoHe 1:fd355dc296b1 44 #endif