Blame view

src/TimeTableCatalog/TimeInterval.cc 1.26 KB
fbe3c2bb   Benjamin Renard   First commit
1
2
3
4
5
6
7
8
9
10
11
/*
 * TimeInterval.cpp
 *
 *  Created on: 5 août 2013
 *      Author: CS
 */

#include "TimeInterval.hh"

namespace TimeTableCatalog {

897858c8   Benjamin Renard   Support multi TT ...
12
TimeInterval::TimeInterval(double pstartTime, double pstopTime, int pindex, std::string pttPath, std::string pttName, int pttTotalIntervals) :
fbe3c2bb   Benjamin Renard   First commit
13
14
		_startTime(pstartTime),
		_stopTime(pstopTime),
897858c8   Benjamin Renard   Support multi TT ...
15
16
17
18
		_index(pindex),
		_ttPath(pttPath),
		_ttName(pttName),
		_ttTotalIntervals(pttTotalIntervals) {
fbe3c2bb   Benjamin Renard   First commit
19
20
21
22
23
}

TimeInterval::~TimeInterval() {
}

c6a67968   Benjamin Renard   Fix some violatio...
24
25
26
27
28
29
30
31
32
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)
{
fbe3c2bb   Benjamin Renard   First commit
33
34
35
36
37
38
39
40
41
42
}

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];
}

1b52e70a   Erdogan Furkan   First Kernel modi...
43
44
45
46
47
std::map<std::string, std::vector<std::string>> TimeInterval::getAllParameterData() const
{
	return _parametersData;
}

fbe3c2bb   Benjamin Renard   First commit
48
49
50
51
52
int TimeInterval:: getParameterDataCount () {
	return _parametersData.size();
}

} /* namespace TimeTableCatalog */