Blame view

src/TimeTableCatalog/TimeInterval.cc 922 Bytes
fbe3c2bb   Benjamin Renard   First commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
 * TimeInterval.cpp
 *
 *  Created on: 5 août 2013
 *      Author: CS
 */

#include "TimeInterval.hh"

namespace TimeTableCatalog {

TimeInterval::TimeInterval(double pstartTime, double pstopTime, int pindex) :
		_startTime(pstartTime),
		_stopTime(pstopTime),
		_index(pindex) {
}

TimeInterval::~TimeInterval() {
}

TimeInterval::TimeInterval(const TimeInterval& pCopy) {
	_startTime		= pCopy._startTime;
	_stopTime		= pCopy._stopTime;
	_parametersData = pCopy._parametersData;
	_index          = pCopy._index;
}

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 */