Definition at line 354 of file cpmapper.h.
OSB_LIB::MappedPartInfo::MappedPartInfo | ( | const ConnectionPt & | cp, | |
const DateTime & | startTs, | |||
const DateTime & | endTs | |||
) |
The only constructor.
cp | Connection point for this mapped part info. | |
startTs | Start timestamp of the mapped part. | |
endTs | End timestamp of the mapped part. |
void OSB_LIB::MappedPartInfo::print | ( | std::ostream & | os, | |
std::string | spacer | |||
) | const |
Print for testing purposes.
bool OSB_LIB::MappedPartInfo::withinPeriod | ( | const DateTime & | ts | ) | const |
Is a valid mapped part info at a given time?
This function will compare the timestamp passed in with the start and end date of this part info. Thus, it can tell whether the mapped part info is valid at the given time or not.
ts | Time stamp when the validity of the part info is to be checked. |
friend class MappedPartInfoList [friend] |
DateTime OSB_LIB::MappedPartInfo::endTs_ [private] |
MappedCp OSB_LIB::MappedPartInfo::mappedCp_ [private] |
DateTime OSB_LIB::MappedPartInfo::startTs_ [private] |