![]() |
PhoenixLecture
2.0.0
Set of tools to make lectures
|
#include "ptimetable_updateEndTime.h"
Go to the source code of this file.
Functions | |
PLatexTime | addTime (const PLatexTime &beginTime, const PLatexTime &durationTime) |
Add two PLatexTime together. More... | |
void | ptimetable_updateDate (PLatexDate &lastDate, PLatexDate &blockDate) |
Update the date of the block. More... | |
void | ptimetable_updateEndTime (PTimeTable &timetable) |
Update the end time of the blocks. More... | |
void | ptimetable_updateTime (PLatexTime &lastTime, PLatexTime &blockBegin) |
Update the date of the block. More... | |
PLatexTime addTime | ( | const PLatexTime & | beginTime, |
const PLatexTime & | durationTime | ||
) |
Add two PLatexTime together.
beginTime | : time of the bock begining |
durationTime | : duration of the block |
Definition at line 14 of file ptimetable_updateEndTime.cpp.
References PLatexTime::getHour(), PLatexTime::getMinute(), PLatexTime::setHour(), and PLatexTime::setMinute().
Referenced by ptimetable_updateEndTime().
void ptimetable_updateDate | ( | PLatexDate & | lastDate, |
PLatexDate & | blockDate | ||
) |
Update the date of the block.
[out] | lastDate | : last initialised date |
[out] | blockDate | : date of the block This function will update the lastDate with the blockDate if the blockDate is set and update the blockDate with the lastDate if the lastDate is set |
Definition at line 30 of file ptimetable_updateEndTime.cpp.
References PLatexDate::getDay(), PLatexDate::getMonth(), and PLatexDate::getYear().
Referenced by ptimetable_updateEndTime().
void ptimetable_updateEndTime | ( | PTimeTable & | timetable | ) |
Update the end time of the blocks.
[out] | timetable | : PTimeTable to be udpated |
Definition at line 54 of file ptimetable_updateEndTime.cpp.
References addTime(), PTimeTable::getBeginDate(), PTimeTableBlock::getBeginTime(), PTimeTableBlock::getDate(), PTimeTableBlock::getDuration(), PTimeTable::getLocation(), PTimeTable::getMainUrl(), PTimeTable::getVecBlock(), ptimetable_updateDate(), ptimetable_updateTime(), PTimeTableBlock::setEndTime(), PLatexTime::setHour(), and PLatexTime::setMinute().
Referenced by PConfigParser::parseTimeTable().
void ptimetable_updateTime | ( | PLatexTime & | lastTime, |
PLatexTime & | blockBegin | ||
) |
Update the date of the block.
[out] | lastDate | : last initialised date |
[out] | blockDate | : date of the block This function will update the lastDate with the blockDate if the blockDate is set and update the blockDate with the lastDate if the lastDate is set |
Definition at line 43 of file ptimetable_updateEndTime.cpp.
References PLatexTime::getHour(), and PLatexTime::getMinute().
Referenced by ptimetable_updateEndTime().