Sensos Module Updated

Dependents:   SmartLabProyect

Fork of Middleware by Roberto Herrera

StringManager.h

Committer:
Jorge_Beltran
Date:
2015-12-10
Revision:
4:c59485faea9f
Parent:
1:fd355dc296b1

File content as of revision 4:c59485faea9f:

/*

StringManager.h

Only to improve the clarity of main .cpp
This don't have any new classes

This import is use to manage the strings

Last update by RoHe 16/11/2015
*/

#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"

#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