#ifndef TMESSAGES_AMCS_H
#define TMESSAGES_AMCS_H
#include <stdlib.h>
#include <tvsp_amcs.hpp>
#include <string>
#include <time.h>
#include <iostream>
#include <unistd.h>


using namespace std;


class TMessages_AMCS{
public:
					
	string completeMessage;		//Complete Message to send to AMCS
	string header;				//Message Header
	string body;				//Message Body
	

    	TMessages_AMCS();

    	~TMessages_AMCS();

	//generate greetings message
	bool generateGreetingsMsg(char* name, char* ident, char* site);
	//generate timeout message
	bool generateTimeoutMsg(char* name, char* ident, char* site, char* timeoutSeconds);
	//generate goodbye message
	bool generateGoodbyeMsg(char* name, char* ident, char* site);	
	//generate status messages	
	bool generateStatusMsg(char* name, char* ident, char* site, char* statusTable[], int statusCount);
	//This method will return a string with timestamp
	char* timestampGenerator();
	//This method is used to adjust the to the real length of messages
	int adjustMessageLength(int length);	
};

#endif
