ParamDataIndexInfo.hh 1.45 KB
/*
 * ParamDataIndexInfo.hh
 *
 *  Created on: Dec 11, 2012
 *      Author: f.casimir
 */

#ifndef PARAMDATAINDEXINFO_HH_
#define PARAMDATAINDEXINFO_HH_

#include <list>

namespace AMDA {
namespace Parameters {

struct ParamDataIndexInfo
{
	unsigned int _startIndex;
	unsigned int  _nbDataToProcess;
	bool _timeIntToProcessChanged;
	bool _noMoreTimeInt;

	/**
	 * @brief Define on which index a time interval ended.
	 */
	std::list<unsigned int> _endTimeIntIndexList;

	ParamDataIndexInfo() : _startIndex(0), _nbDataToProcess(0), _timeIntToProcessChanged(false), _noMoreTimeInt(false), _endTimeIntIndexList() {}

	ParamDataIndexInfo(const ParamDataIndexInfo &pParamDataIndexInfo) :
		_startIndex(pParamDataIndexInfo._startIndex),
		_nbDataToProcess(pParamDataIndexInfo._nbDataToProcess),
		_timeIntToProcessChanged(pParamDataIndexInfo._timeIntToProcessChanged), _noMoreTimeInt(pParamDataIndexInfo._noMoreTimeInt),
		_endTimeIntIndexList(pParamDataIndexInfo._endTimeIntIndexList){}

	ParamDataIndexInfo(unsigned int startIndex, unsigned int nbDataToProcess, bool timeIntToProcessChanged = false, bool noMoreTimeInt = false, std::list<unsigned int> endTimeIndexList = std::list<unsigned int>()) :
		_startIndex(startIndex),
		_nbDataToProcess(nbDataToProcess),
		_timeIntToProcessChanged(timeIntToProcessChanged), _noMoreTimeInt(noMoreTimeInt),
		_endTimeIntIndexList(endTimeIndexList)
		{}
};

} /* namespace Parameters */
} /* namespace AMDA */

#endif /* PARAMDATAINDEXINFO_HH_ */