00001 #ifndef TMESSAGES_AMCS_H
00002 #define TMESSAGES_AMCS_H
00003 #include <stdlib.h>
00004 #include <tvsp_amcs.hpp>
00005 #include <string>
00006 #include <time.h>
00007 #include <iostream>
00008 #include <unistd.h>
00009
00010
00011 using namespace std;
00012
00013
00014 class TMessages_AMCS{
00015 public:
00016
00017 string completeMessage;
00018 string header;
00019 string body;
00020
00021
00022 TMessages_AMCS();
00023
00024 ~TMessages_AMCS();
00025
00026
00027 bool generateGreetingsMsg(char* name, char* ident, char* site);
00028
00029 bool generateTimeoutMsg(char* name, char* ident, char* site, char* timeoutSeconds);
00030
00031 bool generateGoodbyeMsg(char* name, char* ident, char* site);
00032
00033 bool generateStatusMsg(char* name, char* ident, char* site, char* statusTable[], int statusCount);
00034
00035 char* timestampGenerator();
00036
00037 int adjustMessageLength(int length);
00038 };
00039
00040 #endif