#ifndef CONNECTORSINGLETON_H
#define CONNECTORSINGLETON_H
#include "Connector.h"
/**
 * ConnectorSingleton maintains one connector in memory for other class to use. Much like a global connector.
 * Uses Singleton pattern.
 */
class ConnectorSingleton {
	public:
		/**
		 * gets the global connector
		 * */
		static Connector* getConnector() { return connector; }
		/**
		 * sets the current global connector.
		 * */
		void setConnector(Connector * c);
	private:
      		static Connector * connector;
};
#endif
