/* * 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 ¶mId, const std::vector ¶mValues) { _parametersData [paramId] = paramValues; } std::vector & TimeInterval:: getParameterData (const std::string ¶mId) { return _parametersData [paramId]; } int TimeInterval:: getParameterDataCount () { return _parametersData.size(); } } /* namespace TimeTableCatalog */