#ifndef MESSAGE_H
#define MESSAGE_H

#include <vector>
#include <string>
#include "QuickDirtyXMLParser.h"
#include "TreeNode.h"
/**
 * This is wrapper for recieved XML messages,
 * it enables parsing to a XML tree for easy evaluation
 */
class Message {
	public:
		/**
		 * The root TreeNode
		 * */
		TreeNode * node;
		/**
		 * The XML string
		 * */
		string xml;
		/**
		 * Constructor which sets the value
		 * */
		Message(string value);
		/**
		 * Empty Constructor
		 * */
		Message();
		/**
		 * Parses the XML and returns the tree if necessary.
		 * */
		TreeNode * getTree();
		/**
		 * gets the XML from the Message
		 * */
		string * getXML();
		/**
		 * Destructor
		 * */
		~Message();
	private:
		/**
		 * Parses the XML
		 * */
		void parseXML();
		
};
#endif

