WXP C++ Library Version 6.74.9
|
This class is used to set a valid range of time. More...
#include "../include/DateRange.h"
Public Member Functions | |
DateRange () | |
DateRange (Date &rdate, int rpre, int rpost) | |
int | set (Date &rdate, int rpre, int rpost) |
int | set (int rpre, int rpost) |
int | set (Date &rdate) |
int | init () |
bool | valid (Date &date) |
bool | valid (int secs) |
int | print () |
This class is used to set a valid range of time.
DateRange::DateRange | ( | ) |
Constructor. Initializes the class values
References init().
DateRange::DateRange | ( | Date & | date, |
int | pre, | ||
int | post | ||
) |
int DateRange::init | ( | ) |
int DateRange::set | ( | Date & | date, |
int | rpre, | ||
int | rpost | ||
) |
Sets the valid range
date | The base date |
rpre | The number of minutes prior to time |
rpost | The number of minutes after the time |
References WXP::Date::getSeconds().
Referenced by DateRange(), WXP::RcmDecode::decode(), WXP::UpaDecode::init(), WXP::MdrImage::readFile(), and WXP::UpaDecode::setParam().
bool DateRange::valid | ( | Date & | date | ) |
Checks to see if date is within range
date | Date to check |
References WXP::Date::getSeconds().
Referenced by WXP::UpaDecode::decode(), WXP::LightPlot::draw(), and WXP::MdrImage::readFile().
bool DateRange::valid | ( | int | rsecs | ) |