trastoamcs.kdevelop: trastoamcs/src/tmessages_amcs.hpp Source File

Main Page | Directories | File List

# tmessages_amcs.hpp

    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;         //Complete Message to send to AMCS
    00018         string header;                  //Message Header
    00019         string body;                    //Message Body
    00020
    00021
    00022         TMessages_AMCS();
    00023
    00024         ~TMessages_AMCS();
    00025
    00026         //generate greetings message
    00027         bool generateGreetingsMsg(char* name, char* ident, char* site);
    00028         //generate timeout message
    00029         bool generateTimeoutMsg(char* name, char* ident, char* site, char* timeoutSeconds);
    00030         //generate goodbye message
    00031         bool generateGoodbyeMsg(char* name, char* ident, char* site);
    00032         //generate status messages
    00033         bool generateStatusMsg(char* name, char* ident, char* site, char* statusTable[], int statusCount);
    00034         //This method will return a string with timestamp
    00035         char* timestampGenerator();
    00036         //This method is used to adjust the to the real length of messages
    00037         int adjustMessageLength(int length);
    00038 };
    00039
    00040 #endif