#ifndef _command_h #define _command_h class Command { private: char *cmd; //comando da inserire char *value; //comando di konsole associato char *buffer; //buffer per l'ouput public: //costruttori Command(); Command(char *c, char *what); //distruttore ~Command(); //accesso ai membri privati char *GetCommand() { return cmd; } char *GetValue() { return value; } void SetValue(char *what) { LOG.DEV("Aggiornamento comando: ", 0); LOG.DEV(what); delete [] value; value = new char [strlen(what)+1]; strcpy(value, what); } //funzione per output char *GetChar(); //overload dell'operatore << (obsoleta) friend ostream& operator<<(ostream &co, Command &C) { co << C.cmd << " = " << C.value; return co; } }; #endif