TimeInterval.cc 1.14 KB
/*
 * TimeInterval.cpp
 *
 *  Created on: 5 août 2013
 *      Author: CS
 */

#include "TimeInterval.hh"

namespace TimeTableCatalog {

TimeInterval::TimeInterval(double pstartTime, double pstopTime, int pindex, std::string pttPath, std::string pttName, int pttTotalIntervals) :
		_startTime(pstartTime),
		_stopTime(pstopTime),
		_index(pindex),
		_ttPath(pttPath),
		_ttName(pttName),
		_ttTotalIntervals(pttTotalIntervals) {
}

TimeInterval::~TimeInterval() {
}

TimeInterval::TimeInterval(const TimeInterval& pCopy) : 
		_startTime(pCopy._startTime),
		_stopTime(pCopy._stopTime),
		_index(pCopy._index),
		_ttPath(pCopy._ttPath),
		_ttName(pCopy._ttName),
                _ttTotalIntervals(pCopy._ttTotalIntervals),
		_parametersData(pCopy._parametersData)
{
}

void TimeInterval::addParameterData (const std::string &paramId, const std::vector<std::string> &paramValues) {
	_parametersData [paramId] = paramValues;
}

std::vector<std::string> & TimeInterval:: getParameterData (const std::string &paramId) {
		return _parametersData [paramId];
}

int TimeInterval:: getParameterDataCount () {
	return _parametersData.size();
}

} /* namespace TimeTableCatalog */