BinsProperties.hh 1.36 KB
/*
 * BinsProperties.hh
 *
 *  Created on: Jan 30, 2023
 *      Author: AKKODIS
 */

#ifndef BINSPROPERTIES_HH_
#define BINSPROPERTIES_HH_

#include <iostream>
#include <map>
#include <string>
#include "Matrix.hh"
#include "Histo2DFunction.hh"

namespace plot {

/**
 * Properties saved after reading 'bins' tag from xml request
 */

class BinsProperties
{
    public:
		
		BinsProperties() : _xBinNumber(0),_yBinNumber(0){}
        BinsProperties(unsigned int xBinNumber, unsigned int yBinNumber)
            : _xBinNumber(xBinNumber),_yBinNumber(yBinNumber) {}

        ~BinsProperties() {}

		// No need to comment, I guess 
        void setXBinNumber(unsigned int xBinNumber) { _xBinNumber = xBinNumber; }
        unsigned int getXBinNumber() const { return _xBinNumber; }
        
        void setYBinNumber(unsigned int yBinNumber) { _yBinNumber = yBinNumber; }
        unsigned int getYBinNumber() const { return _yBinNumber; }
        
    private:
        unsigned int _xBinNumber;
		unsigned int _yBinNumber; 
};

/**
 * Properties saved after reading 'manual' tag from xml request
 */


class ManualProperties : public BinsProperties {
  	public:
		ManualProperties()
		{
			BinsProperties();
		}
		ManualProperties(unsigned int xBinNumber, unsigned int yBinNumber)
		{
			BinsProperties(xBinNumber, yBinNumber);
		}
};

} /* namespace plot */

#endif /* BINSPROPERTIES_HH_ */