PlotCommon.hh 957 Bytes
/*
 * PlotCommon.hh
 *
 *  Created on: 30 oct. 2013
 *      Author: CS
 */

#ifndef PLOTCOMMON_HH_
#define PLOTCOMMON_HH_

#include <string>
#include <ostream>

namespace plot {

class PlotCommon {
public:

	enum Align {
		CENTER, LEFT, RIGHT
	};


	enum Position {
		POS_TOP, POS_BOTTOM, POS_LEFT, POS_RIGHT, POS_CENTER
	};

	enum Dimension {
		ISO_A4,
		US_letter
	};

	enum Orientation {
		LANDSCAPE,
		PORTRAIT
	};

	enum Mode {
		COLOR,
		GRAYSCALE
	};

	PlotCommon();
	virtual ~PlotCommon();

	/**
	 * Sets title align.
	 */
	static void setTitleAlign(const std::string& pAlign, PlotCommon::Align& intoValue);

	/**
	 * Sets title position.
	 */
	static void setPosition(const std::string& pPosition, PlotCommon::Position& intoValue);
};

std::ostream & operator <<(std::ostream & out,
		PlotCommon::Position & position);
std::ostream & operator <<(std::ostream & out,
		PlotCommon::Align & align);

} /* namespace plot */
#endif /* PLOTCOMMON_HH_ */